Skip to content

check_hermitian fails for zero-matrix #120

@ogauthe

Description

@ogauthe

Hi!

As a follow-up to #76 and #78, I have an issue with hermitian checks for zero matrix.

using MatrixAlgebraKit: check_hermitian,  default_hermitian_tol, eigh_full, ishermitian

m = zeros((1,1))
ishermitian(m)  # true
ishermitian(m; atol=default_hermitian_tol(m))  # false
check_hermitian(m)  # DomainError
eigh_full(m)  # DomainError

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