Skip to main content

norm

Function norm 

Source
pub fn norm(v: &[f64]) -> f64
Expand description

Euclidean (L2) norm of a vector.

§Arguments

  • v — the vector whose norm is taken.

§Returns

√Σ vᵢ², used as the gradient-norm stopping criterion across optimizers.