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>
25 lines
377 B
Text
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]
|