Norm: Norm of a matrix

View source: R/Norm.R

Norm of a matrixR Documentation

Norm of a matrix

Description

Norm of a matrix.

Usage

Norm(x, type = "F")

Arguments

x

A matrix with numbers.

type

The type of norm to be calculated. The default is "F" standing for Frobenius norm ("f" in R's norm). The other options are "C" standing for the one norm ("o" in R's norm), "R" for the identiy norm ("I" in R's norm) and "M" for the maximum modulus among elements of a matrix ("M" in R's norm)

Value

A number, the norm of the matrix.

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

See Also

Dist, dista, colmeans

Examples

x <- matrix( rnorm(10 * 10), ncol = 10 )
res<-Norm(x, "F")
res<-norm(x, "F")
res<-Norm(x, "M")
res<-norm(x, "M")

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.