We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed814c commit 777147aCopy full SHA for 777147a
src/varimax.jl
@@ -34,7 +34,7 @@ function varimax(A; gamma = 1.0, minit = 20, maxit = 1000, reltol = 1e-12)
34
L,_,M = svd(A' * (d*B.^3 - gamma*B * Diagonal(sum(B.^2, dims = 1)[:])))
35
T = L * M'
36
if norm(T-Matrix{Float64}(I, m, m)) < reltol
37
- T = qr(randn(m,m)).Q[1,1]
+ T = qr(randn(m,m)).Q
38
B = A * T
39
end
40
0 commit comments