Skip to content

lsqr! not minimizing norm #327

Description

@FHell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions