[Numpy-discussion] apply table lookup to each element

Stéfan van der Walt stefan at sun.ac.za
Mon May 4 08:10:58 EDT 2009


2009/5/4 Neal Becker <ndbecker2 at 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