Learn R Programming

retistruct (version 0.8.0)

vecnorm: Vector norm

Description

Vector norm

Usage

vecnorm(X)

Value

If a vector, returns the 2-norm of the vector. If a matrix, returns the 2-norm of each row of the matrix

Arguments

X

Vector or matrix.

Author

David Sterratt