Skip to content

3x3 matrix takes too many QR iterations #132

@haampie

Description

@haampie

This 3x3 matrix with (nearly) repeated eigenvalues takes an astonishing 2700 iterations of the QR algorithm:

julia> H = [-9.000000022477964 -4.51417416984849e-5 -0.03599511897656601; 2.555189460215141e-12 -9.00000552392542 -0.004386727237710469; 0.0 6.956006220233481e-9 -8.999994476095713]

julia> wrap(H::AbstractMatrix{T}) where T = GenericLinearAlgebra.HessenbergFactorization{T,typeof(H),Vector{GenericLinearAlgebra.Householder{T}}}(H, [])

julia> HH = wrap(copy(H)); GenericLinearAlgebra._schur!(HH, maxiter=100000)

Haven't checked yet how LAPACK handles it.

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