norm {Matrix} | R Documentation |
Computes a matrix norm of x
, using Lapack for dense matrices.
The norm can be the one norm, the infinity norm, the Frobenius norm,
or the maximum modulus among elements of a matrix, as determined by
the value of type
.
norm(x, type, ...)
x |
a real or complex matrix. |
type |
A character indicating the type of norm desired.
The default is |
... |
further arguments passed to or from other methods. |
For dense matrices, the methods eventually call the Lapack functions
dlange
, dlansy
, dlantr
, zlange
,
zlansy
, and zlantr
.
A numeric value of class "norm"
, representing the quantity
chosen according to type
.
Anderson, E., et al. (1994). LAPACK User's Guide, 2nd edition, SIAM, Philadelphia.
x <- Hilbert(9) norm(x, "1") norm(x, "I") norm(x, "F") norm(x, "M")