3 ms·
sorting is nlogn in general and faster for numerics. Plus after sorting you can use SIMD to sum everything much faster. But yes, xsum and the like are more ac
by 77pt77 2y ago
sorting is nlogn in general and faster for numerics.
Plus after sorting you can use SIMD to sum everything much faster.
But yes, xsum and the like are more accurate.