Function engram::metrics::norm_linf

source ·
pub fn norm_linf(vector: &[f64]) -> f64
Expand description

Compute the L∞ (max) norm of a vector.

§Examples

let x = [1.0, 2.0, 3.0];
let n = norm_linf(&x);