v923z / micropython-ulab

a numpy-like fast vector module for micropython, circuitpython, and their derivatives
https://micropython-ulab.readthedocs.io/en/latest
MIT License
392 stars 110 forks source link

[FEATURE REQUEST] implement numpy.take #661

Open v923z opened 5 months ago

v923z commented 5 months ago

Describe the solution you'd like Implement fancy indexing based on https://numpy.org/doc/stable/reference/generated/numpy.take.html

Additional context The implementation would resolve https://github.com/v923z/micropython-ulab/issues/607 in the most frequent use cases.

v923z commented 3 months ago

Code added in https://github.com/v923z/micropython-ulab/tree/take