vnorm: Norm of a vector or columns of a matrix

Description Usage Arguments Value Examples

View source: R/O2PLS.R

Description

Norm of a vector or columns of a matrix

Usage

1
vnorm(x)

Arguments

x

Numeric vector or matrix.

Value

(columnwise) Euclidian norm of x

Examples

1
2
vnorm(orth(1:5))
vnorm(matrix(1:9,3,3))^2 - colSums(matrix(1:9,3)^2)

selbouhaddani/O2PLS documentation built on May 29, 2019, 5:53 p.m.