Skip to content

ishermitian

linear-algebra · scripts/linear-algebra/ishermitian.m

: tf = ishermitian (A)
: tf = ishermitian (A, tol)
: tf = ishermitian (A, skewopt)
: tf = ishermitian (A, skewopt, tol)

Return true if A is Hermitian (A == A') or, with the option "skew", skew-Hermitian (A == -A').

With a positive relative tolerance the test is norm (A - A', Inf) / norm (A, Inf) <= tol.