On Fri, 2019-01-11 at 12:32 -0800, Keith Goodman wrote:
> I remember back when a.sum(axis=0) was much slower than a.sum(axis=1)
> for something like a=np.ones((1000, 1000)). But now it runs in about
> the same time. How does numpy do it?
>
"now" is since numpy 1.7 or so :).
> Does numpy do somet
I remember back when a.sum(axis=0) was much slower than a.sum(axis=1) for
something like a=np.ones((1000, 1000)). But now it runs in about the same
time. How does numpy do it?
Does numpy do something like
for i in range(a.shape[0]):
for j in range(x.shape[1]):
result[j] += a[i, j]
___
On Fri, 2019-01-11 at 13:57 +1100, Juan Nunez-Iglesias wrote:
>
>
> > On 10 Jan 2019, at 6:35 pm, Todd wrote:
> >
> > Could this approach be used to deprecate `ravel` and let us just
> > use `flatten`?
>
>
> Could we not? `.ravel()` is everywhere and it matches
> `ravel_multi_index` and `unra