norm
Compute the Norm of a Matrix
Description
Displays the norm of a matrix according to the norm type.
Usage
norm(x, type = c("O", "I", "F", "M"))
Arguments
x |
a numeric or complex matrix.
|
type |
a character string specified as norm type.
The norm type can be one of "O", "I", "F" and "M".
See the Details section for their descriptions.
|
Details
norm() uses the LAPACK routine
"DLANGE" (numeric) or
"ZLANGE" (complex) to calculate the norm
of a matrix. The
type argument defines the norm types:
- "O": The one norm of a matrix (maximum column sum).
- "I": The infinity norm of a matrix (maximum row sum).
- "F": The Frobenius norm of a matrix (square root of sum of squares).
- "M": The element of largest absolute value of a real matrix.
Value
A numeric value representing the norm of a matrix.
Differences between TIBCO Enterprise Runtime for R and Open-source R
Open-source R does not handle complex matrices.
References
Anderson. E. and ten others (1999)
LAPACK Users' Guide. Third Edition. SIAM.
Examples
x <- matrix(rnorm(12), nrow = 3)
norm(x)
norm(x, "M")
norm(x, "O")
norm(x, "I")
norm(x, "F")