Skip to content

Make eigvals work with non-Hermitian matrices #753

Open
@benzwick

Description

@benzwick

Should we be more specific by throwing a DomainError here:

error("Only hermitian matrices are diagonalizable by *StaticArrays*. Non-Hermitian matrices should be converted to `Array` first.")

to make it easier to catch these types of errors?

Compare with eigen.jl in LinearAlgebra:

https://github.com/JuliaLang/julia/blob/3935491dc5028f23587ca8df6d4e0de75cf50e53/stdlib/LinearAlgebra/src/eigen.jl#L376

https://github.com/JuliaLang/julia/blob/3935491dc5028f23587ca8df6d4e0de75cf50e53/stdlib/LinearAlgebra/src/eigen.jl#L418

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions