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]
_______________________________________________ NumPy-Discussion mailing list [email protected] https://mail.python.org/mailman/listinfo/numpy-discussion
