nrm2 {ThreeWay} | R Documentation |
Computation of a columnwise normalized version of a matrix.
nrm2(A)
A |
Matrix of any order |
N |
Matrix columnwise normalized |
Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it
X <- matrix(rnorm(6*3),ncol=3)
Y <- nrm2(X)
apply(Y^2, 2, sum)