Skip to content

lssolve fails where linsolve succeeds on I x = [1, 0] #133

@gdalle

Description

@gdalle

Am I just holding it wrong?

julia> using KrylovKit, LinearAlgebra

julia> linsolve(I(2), [1.0, 0.0])
([1.0, 0.0], ConvergenceInfo: one converged value after 1 iterations and 2 applications of the linear map;
norms of residuals are given by 0.00e+00.)

julia> lssolve(I(2), [1.0, 0.0])
┌ Warning: LSMR lssolve finished without converging after 100 iterations:* ‖ b - A x ‖ = NaN* ‖ x ‖ = NaN*Aᴴ(b - A x) - λ^2 x ‖ = NaN* number of operations = 201
└ @ KrylovKit ~/.julia/packages/KrylovKit/jC5gU/src/lssolve/lsmr.jl:134
([NaN, NaN], ConvergenceInfo: no converged values after 100 iterations and 201 applications of the linear map;
norms of residuals are given by NaN.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions