Learn R Programming

spheresmooth (version 0.1.3)

norm2: Compute the L2 norm (Euclidean norm) of a vector

Description

This function computes the L2 norm (Euclidean norm) of the input vector u.

Usage

norm2(u)

Value

Numeric value representing the L2 norm of u.

Arguments

u

Numeric vector.

Examples

Run this code
norm2(c(1,2,3))

Run the code above in your browser using DataLab