Function Reference
— Function File: norm (a, p)

Compute the p-norm of the matrix a. If the second argument is missing, p = 2 is assumed.

If a is a matrix:

p = 1
1-norm, the largest column sum of the absolute values of a.
p = 2
Largest singular value of a.
p = Inf or "inf"
Infinity norm, the largest row sum of the absolute values of a.
p = "fro"
Frobenius norm of a, sqrt (sum (diag (a' * a))).

If a is a vector or a scalar:

p = Inf or "inf"
max (abs (a)).
p = -Inf
min (abs (a)).
p = "fro"
Frobenius norm of a, sqrt (sumsq (abs (a))).
other
p-norm of a, (sum (abs (a) .^ p)) ^ (1/p).
See also: cond svd