lbfgs::vec_ops
pub fn inner_product<T>(a: &[T], b: &[T]) -> T where T: Float + Sum<T> + Mul<T, Output = T>,
Calculate the inner product of two slices