vnorm: Norm of a vector or columns of a matrix

View source: R/OmicsPLS.R

vnormR Documentation

Norm of a vector or columns of a matrix

Description

Norm of a vector or columns of a matrix

Usage

vnorm(x)

Arguments

x

Numeric vector or matrix.

Value

(columnwise) Euclidian norm of x

Examples

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

selbouhaddani/OmicsPLS documentation built on Aug. 25, 2022, 9:52 p.m.