Compute the p-norm condition number of a matrix.
cond (
a)
is defined asnorm (
a,
p) * norm (inv (
a),
p)
. By default p=2
is used which implies a (relatively slow) singular value decomposition. Other possible selections are p= 1, Inf, inf, 'Inf', 'fro'
which are generally faster.