We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the documentation lsqr! should return the minimum norm solution if the matrix is ambiguous. This doesn't seem to work:
using IterativeSolvers #- A = zeros(5,5) b = ones(5) x = ones(5) #- lsqr!(x, A, b; damp = 1.) #- isapprox(x, ones(5)) # true
lsqr is working as expected:
y = lsqr(A, b; damp = 1.) isapprox(y, zeros(5)) # true
Julia 1.8, IterativeSolvers v0.9.2
The text was updated successfully, but these errors were encountered:
Incidentally: lsmr! and lsmr show the same behavior.
Edit:
And a nontrivial example:
x = ones(4) b = ones(4) v1 = rand(4) v2 = rand(4) v3 = rand(4) w1 = rand(4) w2 = rand(4) w3 = rand(4) A = v1 * transpose(w1) + v2 * transpose(w2) + v3 * transpose(w3) #- lsqr!(x, A, b) y = lsqr(A, b) #- isapprox(x, y) # false
Sorry, something went wrong.
No branches or pull requests
According to the documentation lsqr! should return the minimum norm solution if the matrix is ambiguous. This doesn't seem to work:
lsqr is working as expected:
Julia 1.8, IterativeSolvers v0.9.2
The text was updated successfully, but these errors were encountered: