Skip to content

cond

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

: c = cond (A)
: c = cond (A, p)

Condition number of A with respect to inversion.

With p = 2 (the default) it is the ratio of the largest to the smallest singular value and A may be rectangular. For p equal to 1, Inf or "fro" it is norm (A, p) * norm (inv (A), p) and A must be square.