Wes McKinney wrote:
> Any clue why I'm seeing this behavior? np.take's documentation says it
> does the "same thing" as fancy indexing, but from this example I'm not
> so sure:
The code used to implement np.take is not the same as that used in fancy
indexing. np.take's mission is simpler, so it
Any clue why I'm seeing this behavior? np.take's documentation says it
does the "same thing" as fancy indexing, but from this example I'm not
so sure:
import numpy as np
mat = np.random.randn(5000, 1000)
selector = np.array(np.arange(5000)[::2])
In [95]: timeit submat = mat[selector]
10 loops, b