Learn R Programming

OmicsPLS (version 2.1.0)

vnorm: Norm of a vector or columns of a matrix

Description

Norm of a vector or columns of a matrix

Usage

vnorm(x)

Value

(columnwise) Euclidian norm of \(x\)

Arguments

x

Numeric vector or matrix.

Examples

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

Run the code above in your browser using DataLab