Skip to content

issymmetric

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

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

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

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