Skip to content

eigs with singular matrix #87

@alainchau

Description

@alainchau

I get NaNs when I try to use eigs on a singular matrix with which=:SM. 🙁
Is this behavior expected? which=:SR works for my use-case but I thought this was strange..
(I'm on Julia v1.3.0 and Arpack v0.4.0.)

julia> eigs(zeros(3,3), nev=2, which=:LM)
([0.0, 0.0], [0.5941386191532766 0.48617004898294336; -0.7258278379742127 0.6673894993800032; 0.3466601373857654 0.5641187282737836], 2, 1, 3, [0.0, 0.0, 0.0])

julia> eigs(zeros(3,3), nev=2, which=:SM)
([NaN, NaN], [NaN NaN; NaN NaN; NaN NaN], 2, 1, 3, [0.0, 0.0, 0.0])

julia> eigs(zeros(3,3), nev=2, which=:SR)
([0.0, 0.0], [0.45524873566374424 0.6593503833676924; -0.3016328607164829 -0.5180634739681107; -0.837714871547923 0.5448553100530177], 2, 1, 3, [0.0, 0.0, 0.0])

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