You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file unittest/iterativesolvers_test.cc, some parts of the codes were broken and commented out.
The reason is the obtained left/right eigenvectors of the second dominant eigenvalue appear incorrect.
To fix this, I propose to change the following lines (from L387 to L391)
auto v2r = randomITensor(i);
auto lambda2r = arnoldi(ITensorMap(A-lambda1r*prime(v1r)*v1l),v2r,{"ErrGoal=",1E-14,"MaxIter=",20,"MaxRestart=",5});
auto v2l = randomITensor(i);
auto lambda2l = arnoldi(ITensorMap(swapPrime(A,0,1)-lambda1l*prime(v1l)*v1r),v2r,{"ErrGoal=",1E-14,"MaxIter=",20,"MaxRestart=",5});
to
auto s1 = eltC(v1r*v1l);
auto v2r = randomITensor(i);
auto lambda2r = arnoldi(ITensorMap(A-(lambda1r/s1)*prime(v1r)*v1l),v2r,{"ErrGoal=",1E-14,"MaxIter=",20,"MaxRestart=",5});
auto v2l = randomITensor(i);
auto lambda2l = arnoldi(ITensorMap(swapPrime(A,0,1)-(lambda1l/s1)*prime(v1l)*v1r),v2l,{"ErrGoal=",1E-14,"MaxIter=",20,"MaxRestart=",5});
The text was updated successfully, but these errors were encountered:
Dear ITensor,
In file unittest/iterativesolvers_test.cc, some parts of the codes were broken and commented out.
The reason is the obtained left/right eigenvectors of the second dominant eigenvalue appear incorrect.
To fix this, I propose to change the following lines (from L387 to L391)
to
The text was updated successfully, but these errors were encountered: