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