Function mag2

Source
pub fn mag2(seq: &[f32]) -> f32
Expand description

Calculates the squared magnitude of the given sequence, i.e. seq[0] * seq[0] + seq[1] * seq[1] + ...