3 ms·
> np.average But that's not the function in the article. The article implements `(a + b) / 2`. And, on my system, simple `return (arr1 + arr2) / 2` takes 1.2m
by Elucalidavah 3y ago
> np.average
But that's not the function in the article. The article implements `(a + b) / 2`.
And, on my system, simple `return (arr1 + arr2) / 2` takes 1.2ms, while the `average_arrays_4` takes 0.74ms.