micropython-ulab/tests/2d/utils/from_buffer.py.exp
Zoltán Vörös dfed7a844a
implement nonzero (#540)
* implement nonzero for Boolean arrays

* remove axtls from build script

* extend nonzero to ndarrays of arbitrary dtype, and iterable, fix float tests

* temporarily disable circuitpython tests

* add nonzero documentation

* Added test script for np.nonzero()

Co-authored-by: Tejal Ashwini Barnwal <64950661+tejalbarnwal@users.noreply.github.com>
2022-08-03 20:56:45 +02:00

8 lines
368 B
Text

array([1.0, 256.0, 65280.0, 65535.0], dtype=float64)
array([1.0, 256.0, -256.0, -1.0], dtype=float64)
array([16777217.0, 4294967040.0], dtype=float64)
array([16777217.0, -256.0], dtype=float64)
array([16777217.0, 4294901760.0], dtype=float64)
array([16777217.0, -65536.0], dtype=float64)
array([1.0, 16777216.0], dtype=float64)
array([1.0, 16777216.0], dtype=float64)