micropython-ulab/tests/2d/numpy/sort.py.exp
Damien George 1a440d7d12
Fix sort when dtype is uint16 (#563)
Prior to this fix the code was using the mp_float_t data type for uint16
and producing incorrect sort results.

Signed-off-by: Damien George <damien@micropython.org>

Signed-off-by: Damien George <damien@micropython.org>
2022-11-29 08:02:35 +01:00

25 lines
377 B
Text

array([], dtype=uint8)
[]
array([1, 2, 3, 4], dtype=uint8)
[1, 3, 2, 0]
array([], dtype=int8)
[]
array([1, 2, 3, 4], dtype=int8)
[1, 3, 2, 0]
array([], dtype=uint16)
[]
array([1, 2, 3, 4], dtype=uint16)
[1, 3, 2, 0]
array([], dtype=int16)
[]
array([1, 2, 3, 4], dtype=int16)
[1, 3, 2, 0]
array([], dtype=float64)
[]
array([1.0, 2.0, 3.0, 4.0], dtype=float64)
[1, 3, 2, 0]