* adding scipy integrate, initial check-in
* compile unix double-precision, select integrations algos
* bumping ulab version number to 6.7.0
* adding documentation
* documentation fix
* documentation fix
* documentation fix
* rewritten in some places
* complex number error handling
* added test cases
* resolved importing scipy.integrate
* resolved importing scipy.integrate #2
* build integrate only when we have MICROPY_FLOAT_IMPL_DOUBLE
* reverting commit a4c0c0b
* re-pushing failed commit
* Revert "re-pushing failed commit"
This reverts commit a10e89fe14.
* improve tests using math.isclose()
* enabled fp32 builds
* removed conditional includes
* adapted to new function names, corrected importing
* function names similar to in CPython scipy.integrate, some minor corrections
* major rewrite representing the name changes, mapping to CPython scipy.integrate, more background info
* 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>
* Fix missing comma in type definition
Signed-off-by: Damien George <damien@micropython.org>
* Make sure all files have a new-line at the end
Some very old compilers don't like files without a new-line at the end.
Signed-off-by: Damien George <damien@micropython.org>
* Use math.isclose for universal_functions expm1 test
Signed-off-by: Damien George <damien@micropython.org>
Signed-off-by: Damien George <damien@micropython.org>