Function engram::linalg::magnitude

source ·
pub fn magnitude(x: &[f64]) -> f64
Expand description

Magnitude of a vector.

§Examples

let x = [1.0, 2.0, 3.0];
let m = magnitude(&x);