* fix the `np.delete` bug
* fix the `np.delete` bug, add unittest code
* increment the version number and update the change log
* update the expected file `delete.py.exp`
* add bitwise operators
* add build to requirements
* [EDIT] - Tweaked test data and saved test results.
* Tweaked test values for and / or
* [EDIT] - Setting print options to be verbose for test comparisons.
* [EDIT] - Removed call to set_printoptions and added output from ulab instead of numpy. Of note - there seems to be a discrepancy between the numpy and ulab output for one of the left_shift cases.
* [EDIT] - Added newline at end of file for diffing purposes.
* [EDIT] - Added print options back in as output seemed truncated.
---------
Co-authored-by: Zoltán Vörös <zvoros@gmail.com>
Co-authored-by: JamieDouugh <jamie.davies@douugh.com>
* Fix create_arange crashing when stop == start
This is due to len being equal to zero, which made (len - 1) equal to MAX_UINT16
* trailing whitespaces
* implement floor division
* fix 3D, 4D loops
* add missing array declaration in 3D, and 4D
* Add test cases for floor division and fix it for ints (#599)
* Add test cases for floor division
* Fix define name in comment
* Fix floor division of ints
---------
Co-authored-by: Maciej Sokołowski <matemaciek@gmail.com>
Now, requesting to allocate an array that is too big gives the exception
'array is too big', like numpy.
This does depend on a gcc extension, `__builtin_mul_overflow`, present
since at least version 5. This extension is also supported in clang.
msvc is probably the only compiler of note that does not support it.
Closes: #576
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>