pub fn compute_norm(v: &[Precision], norm_type: NormType) -> Precision
Compute vector norm according to specified type.