lbfgs::vec_ops
pub fn norm2<T>(a: &[T]) -> T where T: Float + Sum<T>,
Calculate the 2-norm of a slice