norm
Compute the Norm of a Matrix

Description

Displays the norm of a matrix according to the norm type.

Usage

norm(x, type, ...)

Arguments

x a numeric or a complex matrix.
type a character string specified as the norm type. The norm type can be one of "O", "I", "1", "2", "F", or "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, except for type="2", which uses the svd function. The type argument defines the norm types: Note that a matrix norm is not the same as a vector norm.
Value
returns a numeric value representing the norm of a matrix.
Differences between Spotfire Enterprise Runtime for R and Open-source R
Open-source R does not handle complex matrices.
References
Anderson. E., et al. 1999. http://www.netlib.org/lapack/lug/lapack_lug.html. LAPACK Users' Guide. Third Edition. Philadelphia, PA: SIAM Publications.
Examples
x <- cbind( -(1:4), (0:3), c(-3.5,-3.5,3.5,3.5))
norm(x)
norm(x, "M")
norm(x, "O")
norm(x, "I")
norm(x, "F")
norm(x, "2")
Package base version 6.1.1-7
Package Index