Skip to contents

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

Usage

norm2(u)

Arguments

u

Numeric vector.

Value

Numeric value representing the L2 norm of u.

Examples

norm2(c(1,2,3))
#> [1] 3.741657