pub fn fast_sum<T: FloatData<T>>(values: &[T]) -> T
Fast summation, ends up being roughly 8 to 10 times faster than values.iter().copied().sum(). Shamelessly stolen from https://stackoverflow.com/a/67191480