3 ms·
Simple 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() 50000000
by eesmith 5y ago
Simple 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