3 ms·
Does numpy.mean() do this?
by amelius 5y ago
Does numpy.mean() do this?
- eesmith 5y agoSimple testing shows it does not use the naive sum. >>> import numpy as np >>> arr = np.array( (1_000_000_000.1, 1.1) * 50_000) >>> arr.mean() 500000000.6000003