Columnwise normalization of a matrix

Description

Computation of a columnwise normalized version of a matrix.

Usage

1
 nrm2(A)

Arguments

A

Matrix of any order

Value

N

Matrix columnwise normalized

Author(s)

Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it

See Also

Cc

Examples

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.