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)

OmicsPLS documentation built on April 3, 2025, 5:25 p.m.