'norm' is a built-in function from the file libinterp/corefcn/data.cc
-- norm (A)
-- norm (A, P)
-- norm (A, P, OPT)
Compute the p-norm of the matrix A.
If the second argument is not given, `p = 2' is used.
If A is a matrix (or sparse 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)))'.
other P, `P > 1'
maximum `norm (A*x, p)' such that `norm (x, p) == 1'
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)))'.
P = 0
Hamming norm--the number of nonzero elements.
other P, `P > 1'
p-norm of A, `(sum (abs (A) .^ P)) ^ (1/P)'.
other P `P < 1'
the p-pseudonorm defined as above.
If OPT is the value "rows", treat each row as a vector and compute
its norm. The result is returned as a column vector. Similarly,
if OPT is "columns" or "cols" then compute the norms of each
column and return a row vector.
See also: normest, normest1, cond, svd.
Additional help for built-in functions and operators is
available in the online version of the manual. Use the command
'doc <topic>' to search the manual index.
Help and information about Octave is also available on the WWW
at http://www.octave.org and via the help@octave.org
mailing list.