Learn R Programming

ThreeWay (version 1.1.3)

nrm2: Columnwise normalization of a matrix

Description

Computation of a columnwise normalized version of a matrix.

Usage

nrm2(A)

Value

N

Matrix columnwise normalized

Arguments

A

Matrix of any order

Author

Maria Antonietta Del Ferraro [email protected]
Henk A.L. Kiers [email protected]
Paolo Giordani [email protected]

See Also

Cc

Examples

Run this code
X <- matrix(rnorm(6*3),ncol=3)
Y <- nrm2(X)
apply(Y^2, 2, sum)

Run the code above in your browser using DataLab