5d01882c41
Only use this submodule feature in CircuitPython
...
.. as it does not work properly in MicroPython.
Also, modules to be const. This saves a small amount of RAM
2022-02-19 09:27:29 -06:00
d4d8f1f41e
Fix finding processor count when no python executable is installed
...
debian likes to install only `python3`, and not `python` (which was,
for many decades, python2).
This was previously done for `build.sh` but not for `build-cp.sh`.
2022-02-19 09:11:31 -06:00
6c2bfd8fbc
Properly register submodules of ulab
...
This is related to
* https://github.com/adafruit/circuitpython/issues/6066
in which, after the merge of 1.18 into CircuitPython, we lost the ability
to import submodules of built-in modules.
While reconstructing the changes we had made locally to enable this,
I discovered that there was an easier way: simply register the dotted
module names via MP_REGISTER_MODULE.
2022-02-19 08:45:07 -06:00
Zoltán Vörös
0c7c6b88f3
Merge pull request #456 from v923z/complex2
...
Complex2
2022-01-08 12:11:37 +01:00
Zoltán Vörös
6552cfdc38
remove misleading comment from ulab.h
2022-01-07 21:19:06 +01:00
Zoltán Vörös
665c32dbb4
add documentation for compress
2022-01-07 20:53:31 +01:00
Zoltán Vörös
6609afd006
update documentation
2022-01-07 20:43:14 +01:00
Zoltán Vörös
969afdec7f
implement ==, and != for complex dtypes
2022-01-07 14:05:38 +01:00
Zoltán Vörös
ecaa355bab
fix sort_complex, add tests to sort_complex, conjugate
2022-01-07 12:47:42 +01:00
Zoltán Vörös
ad9e1e9950
fix linspace error, extend to complex dtype, factor out tests
2022-01-06 19:55:34 +01:00
Zoltán Vörös
d1b3d40b47
add complex support to all/any
2022-01-06 09:22:45 +01:00
Zoltán Vörös
8efdec785e
extend convolve for the complex case
2022-01-05 20:46:03 +01:00
Zoltán Vörös
6a7d20dd58
add real/imag properties to ndarray
2022-01-02 19:14:12 +01:00
Zoltán Vörös
d39549e3ac
add sort_complex function
2022-01-02 17:34:38 +01:00
Zoltán Vörös
cb3f4b3898
add compress function
2022-01-02 12:46:12 +01:00
Zoltán Vörös
2b578ae333
add tolist method to ndarray
2022-01-01 18:16:04 +01:00
Zoltán Vörös
c11dac322d
fix array initialisation from complex array
2022-01-01 09:20:00 +01:00
Zoltán Vörös
4855baa8cc
add conjugate function
2022-01-01 00:33:28 +01:00
Zoltán Vörös
7e13fab911
support ones, zeros, and full for complex dtype
2021-12-31 23:39:58 +01:00
Zoltán Vörös
94d6b13f8d
make fft optionally numpy-compatible, when complex is supported
2021-12-31 23:11:59 +01:00
Zoltán Vörös
9eebed2d3a
add basic complex tests
2021-12-30 11:32:07 +01:00
Zoltán Vörös
e01e547b62
fix dtype in stubs
2021-12-30 09:09:41 +01:00
Zoltán Vörös
4d7e279996
fix circuitpython documentation
2021-12-30 08:54:52 +01:00
Zoltán Vörös
7b17796c91
fix complex sqrt
2021-12-30 08:10:54 +01:00
Zoltán Vörös
ee197ef03f
bring in a99e0b9 in an attempt to fix the docs error
2021-12-28 22:30:17 +01:00
Zoltán Vörös
dbd570a9fb
implement complex scalar binary operations
2021-12-28 22:18:37 +01:00
Zoltán Vörös
14b5c13d50
add complex flag to version string
2021-12-28 21:55:00 +01:00
Zoltán Vörös
5b7395d6df
implement complex divide
2021-12-28 21:51:32 +01:00
Zoltán Vörös
13cebfeccc
add complex subtraction, fix addition
2021-12-28 20:42:00 +01:00
Zoltán Vörös
a99e0b9878
Merge pull request #461 from jepler/fix-mypy-920
...
Change how we alias the float and bool types for mypy
2021-12-17 08:37:41 +01:00
71b3ba15af
Change how we alias the float and bool types for mypy
...
mypy 0.920 started giving an error stating
```
ulab/numpy/__init__.pyi:51: error: Cannot assign multiple types to name "_float" without an explicit "Type[...]" annotation
ulab/numpy/__init__.pyi:54: error: Cannot assign multiple types to name "_bool" without an explicit "Type[...]" annotation
```
this quiets the error, and is also compatible with the previous version
(0.910).
2021-12-16 21:39:20 -06:00
Zoltán Vörös
76218f2386
fix 3D loop
2021-12-15 18:54:14 +01:00
Zoltán Vörös
8a156fe505
implement multiplication for complex arrays
2021-12-15 18:52:07 +01:00
Zoltán Vörös
cc06735cff
fix binary add for 1D
2021-12-15 08:02:26 +01:00
Zoltán Vörös
864ab31766
implement binary add for complex arrays
2021-12-15 06:52:42 +01:00
Zoltán Vörös
3557e16cd1
implement sqrt for complex arrays
2021-12-07 19:55:15 +01:00
Zoltán Vörös
b275fb303d
Merge branch 'complex2' of github.com:v923z/micropython-ulab into complex2
2021-12-03 09:12:08 +01:00
Zoltán Vörös
235329c3fb
fix itemsize glitch
2021-12-03 09:11:41 +01:00
Zoltán Vörös
ce26a0d76b
implement slicing for complex dtype
2021-12-03 09:06:49 +01:00
Zoltán Vörös
78455afa5d
simplify binary_get_size function
2021-12-03 09:06:49 +01:00
Zoltán Vörös
93409e759a
implement iterator for complex arrays
2021-12-03 09:06:49 +01:00
Zoltán Vörös
3b3639a560
implement complex exponential
2021-12-03 09:06:49 +01:00
Zoltán Vörös
d0b1d40cf1
rebasing on master with any/all fix
2021-12-03 09:06:05 +01:00
Zoltán Vörös
316f84174d
rebasing with any/all fix
2021-12-03 09:04:04 +01:00
Zoltán Vörös
ef8989ecff
implement unary operators for complex arrays
2021-12-03 08:59:23 +01:00
Zoltán Vörös
8a6741b350
fix macro call in poly.c
2021-12-03 08:59:23 +01:00
Zoltán Vörös
08313e3f02
fix uppercase mp_obj_is_type macro calls
2021-12-03 08:59:23 +01:00
Zoltán Vörös
8db5ee897e
add missing newline character
2021-12-03 08:59:23 +01:00
Zoltán Vörös
911fdb4587
ulab can now be compiled with complex support
2021-12-03 08:59:23 +01:00
Zoltán Vörös
1013daa902
add complex utilities
2021-12-03 08:59:23 +01:00