[Numpy-discussion] apply table lookup to each element

Stéfan van der Walt stefan@sun.ac...
Mon May 4 07:10:58 CDT 2009


2009/5/4 Neal Becker <ndbecker2@gmail.com>:
> Turns out that if A is an np.array and B is an np.array, then
> A[B] will do exactly what I wanted.
>
> Is this mentioned anywhere in the documentation?

http://docs.scipy.org/numpy/docs/numpy-docs/reference/arrays.indexing.rst/#arrays-indexing

Stéfan


More information about the Numpy-discussion mailing list