fe6677335f
code: Add a docstring for numpy, scipy packages
...
.. this fixes a problem in CircuitPython where building the docs would say
"../shared-bindings/ulab/numpy/approx/index.rst: WARNING: document isn't included in any toctree"
2021-04-03 12:05:42 -05:00
Zoltán Vörös
c1b8f9d687
updated version number
2021-04-02 13:00:10 +02:00
Stephan Hartl
da9eb89e9a
Changed define OPENMV to micropython version check
...
The issue with is solved only coresponed to micropython v1.11
2021-04-01 09:49:42 +02:00
Stephan Hartl
04f6fd68f9
Readd some OPENMV code
...
I used the OPENMV define to get ulab 1.6.1 under ArduPy (Mircopython v1.11) running.
To update to 2.1.5 i have readded the missing code
2021-03-31 16:18:30 +02:00
Stephan Hartl
07545f5156
add relativ path for ulab.h and ndarray.h
...
Some header files didn't had relative path.
Compiling Ardupy didn't finde the files.
In C files ist the path right
2021-03-31 16:11:09 +02:00
Zoltán Vörös
7a183e1fa0
Merge pull request #353 from v923z/where
...
add where
2021-03-31 08:04:47 +02:00
Zoltán Vörös
2407d5e289
fix trivial error in ndarray_from_mp_object
2021-03-31 07:24:52 +02:00
Phil Howard
571286a10e
code/micropython.cmake: drop redundant -D
2021-03-25 21:11:13 +00:00
Phil Howard
74371a8acb
Move code/usermod.cmake to code/micropython.cmake
2021-03-25 21:11:13 +00:00
Phil Howard
655aa2ccd1
Remove debug output from code/usermod.cmake
2021-03-25 21:11:13 +00:00
Zoltán Vörös
6668bb3060
add where implementation
2021-03-23 17:09:27 +01:00
Zoltán Vörös
db71303fb0
fix ESP32 compilation error and instructions
2021-03-21 18:43:18 +01:00
Phil Howard
51b5f8b930
USER_C_MODULES cmake support for rp2 and esp32
...
This change introduces `usermod.cmake`, the CMake configuration required to make
this library compatible with the CMake build systems for the rp2 (Raspberry Pi Pico/RP2040)
and esp32 ports of MicroPython.
This is effectively 1:1 in functionality with `micropython.mk` and defines the source files,
include directories and compile arguments needed to build the module.
See https://github.com/micropython/micropython/pull/6960 for discussion.
2021-03-12 20:53:33 +00:00
Zoltán Vörös
e0b65442a5
Merge branch 'master' into linspace-fix
2021-03-08 18:42:47 +01:00
Zoltán Vörös
779cd3c5a0
fix linspace/logspace/arange for Boolean dtypes
2021-03-08 18:41:19 +01:00
Zoltán Vörös
663a7d2fe0
add from_int16_buffer, from_uint16_buffer functions
2021-03-05 15:25:46 +01:00
Zoltán Vörös
48418d46ab
fix header constants
2021-03-05 08:03:56 +01:00
Zoltán Vörös
e6ac55a142
change function names to from_int32_buffer, from_uint32_buffer
2021-03-05 07:59:39 +01:00
Zoltán Vörös
9a78b59ab5
fix loop counter
2021-03-05 07:39:37 +01:00
Zoltán Vörös
ebf2cc4bc1
wrote docs for the utils module
2021-03-04 20:11:22 +01:00
Zoltán Vörös
3929e6b49d
added from_uintbuffer function
2021-03-04 19:16:34 +01:00
Zoltán Vörös
c84bf46d7e
added first implementation of utils sub-module
2021-03-03 20:15:06 +01:00
Zoltán Vörös
3fb04aedac
fix dot function
2021-02-23 23:17:45 +01:00
Zoltán Vörös
6fb6f2383f
re-introduce ndarray_get_buffer, and buffer protocol
2021-02-21 21:06:02 +01:00
Zoltán Vörös
54ff3f30dd
fix ndarray_is_dense, eye, ones, full, and zeros for Boolean type
2021-02-21 18:02:40 +01:00
Zoltán Vörös
74f819e5fb
Merge branch 'master' into dot-fix
2021-02-15 18:08:45 +01:00
Zoltán Vörös
2c69328303
Merge pull request #322 from v923z/frombuffer-fix
...
removed dangling byte from frombuffer
2021-02-14 09:53:22 +01:00
Zoltán Vörös
efcfeff790
Merge branch 'master' into byteswap
2021-02-14 09:36:07 +01:00
Zoltán Vörös
281b8da84a
removed dangling byte from frombuffer
2021-02-14 09:32:37 +01:00
Zoltán Vörös
60d017d3f6
fixes frombuffer implementation glitch
2021-02-14 09:04:42 +01:00
Zoltán Vörös
18f3b180b3
fixed faulty dot function
2021-02-13 10:19:46 +01:00
Zoltán Vörös
317943b970
moved trace to numpy
2021-02-13 09:25:08 +01:00
Zoltán Vörös
701ad767c8
moved the dot function to numpy
2021-02-13 09:06:02 +01:00
Zoltán Vörös
27bc5b2e79
implemented byteswap
2021-02-12 21:10:08 +01:00
Zoltán Vörös
7de1d0947e
fixed small glitch in all/any
2021-02-12 18:23:53 +01:00
Zoltán Vörös
8046888d99
simplified array contraction algorithm
2021-02-12 18:15:42 +01:00
Zoltán Vörös
0b20b30af6
combined macros for std and mean
2021-02-11 08:03:41 +01:00
Zoltán Vörös
6499453d32
removed redundant code from numerical.c
2021-02-10 20:27:48 +01:00
Zoltán Vörös
93f70d16bc
rationalised code in sum/mean/std
2021-02-10 20:21:24 +01:00
Zoltán Vörös
fd8a2256a6
improved accuracy of sum on iterables
2021-02-10 17:17:49 +01:00
Zoltán Vörös
0acf90433e
simplified all/any implementation, fixed tools_reduce_axes function
2021-02-10 07:28:09 +01:00
Zoltán Vörös
93822e6e13
removed redundant exception from linalg.norm
2021-02-09 19:23:51 +01:00
Zoltán Vörös
6867951ab4
fixed indexing glitch in tools_reduce_axes
2021-02-09 18:53:43 +01:00
Zoltán Vörös
cacb1b66bd
fixed linalg.norm for a special case
2021-02-09 18:26:57 +01:00
Zoltán Vörös
674220c959
updated change log
2021-02-09 17:34:14 +01:00
Zoltán Vörös
0d1379d62b
linalg.norm should not work with the axis keyword argument
2021-02-09 17:32:41 +01:00
Zoltán Vörös
2c71434eab
moved the reduce_axes helper function to ulab_tools
2021-02-09 07:00:47 +01:00
Zoltán Vörös
7c4f4dba48
improved accuracy of linalg.norm, and extended it to generic iterables
2021-02-08 20:24:45 +01:00
Zoltán Vörös
01cddd36a5
fix len unary operator
2021-02-08 19:49:26 +01:00
Zoltán Vörös
f7d86b53e2
completed any/all implementation
2021-02-08 17:47:05 +01:00
Zoltán Vörös
e485b0c5e4
implemented any/all for iterables and scalars
2021-02-01 21:05:43 +01:00
Zoltán Vörös
c622fe61d8
added isinf/isfinite functions
2021-01-29 22:38:40 +01:00
Zoltán Vörös
685ec61bbb
Merge branch 'master' into std-fix
2021-01-29 16:34:37 +01:00
Zoltán Vörös
67e0e500c3
Merge branch 'master' into init
2021-01-29 16:31:04 +01:00
Zoltán Vörös
cca906e29b
removed unpaired #endif
2021-01-29 16:28:56 +01:00
Zoltán Vörös
ba0e2a5310
fixed the computation of the standard deviation on iterables
2021-01-29 15:24:25 +01:00
Zoltán Vörös
8832683fc6
implemented generic array initialisation from nested iterables
2021-01-29 15:07:24 +01:00
teuler
875d2730ce
fix to allow including user.c
2021-01-23 09:30:34 +01:00
Zoltán Vörös
cdc1429196
added option to include own config file
2021-01-21 21:55:16 +01:00
Zoltán Vörös
83a92f9b4b
added ifndef/endif wrappers in ulab.h
2021-01-21 20:51:55 +01:00
Zoltán Vörös
23de394fc1
backup commit, not functional
2021-01-21 20:20:15 +01:00
Zoltán Vörös
b26c3754c5
pulled in workflow files from master
2021-01-15 16:20:35 +01:00
Zoltán Vörös
8e16ab25e5
added documentation on frombuffer, and fixed small error in the code
2021-01-15 08:03:16 +01:00
Zoltán Vörös
06bb8348a0
updated docs, removed circuitpython stuff, and fixed diff code
2021-01-14 19:40:18 +01:00
Zoltán Vörös
9f9e006955
Merge pull request #280 from CallumJHays/numpy-scipy
...
Rename array to ndarray, replaced with constructor fn.
Should address the comment in https://github.com/v923z/micropython-ulab/issues/275 .
2021-01-09 08:55:36 +01:00
CallumJHays
8c789fcdcf
Fix stubs
2021-01-09 12:07:00 +10:00
CallumJHays
9dfc972180
Rename array to ndarray, replaced with constructor fn
2021-01-09 11:43:55 +10:00
Zoltán Vörös
b8ab59bd84
re-organised code, extended docs
2021-01-08 17:40:44 +01:00
Zoltán Vörös
9484e846a3
pulling in PR 272 from master
2020-12-27 12:03:19 +01:00
Zoltán Vörös
24fc20d31b
pulled in stub from master
2020-12-23 21:23:13 +01:00
Zoltán Vörös
0c66a65358
simplified frombuffer code a bit
2020-11-27 08:01:09 +01:00
Zoltán Vörös
259b929493
simplified frombuffer code a bit
2020-11-27 08:00:47 +01:00
Zoltán Vörös
7419611272
removed TODO warning from ulab_create.c
2020-11-27 07:53:07 +01:00
Zoltán Vörös
e50bdea0c7
moved spectrogram code to scipy/signal/signal.c
2020-11-27 07:51:32 +01:00
Zoltán Vörös
aa649b28bb
factored out fft_fft_ifft_spectrogram
2020-11-27 07:42:20 +01:00
Zoltán Vörös
941d36f635
moved frombuffer to ulab_create
2020-11-26 18:53:29 +01:00
Zoltán Vörös
ea2ccdb914
removed OPENMV flags
2020-11-26 17:27:58 +01:00
Zoltán Vörös
42f20bcc67
added the frombuffer function
2020-11-26 17:26:15 +01:00
Zoltán Vörös
815b543c81
moved numpy.c/numpy.h into its own folder
2020-11-26 07:00:23 +01:00
Zoltán Vörös
1f64d99f6d
moved scipy files into their own folder
2020-11-26 06:57:44 +01:00
Zoltán Vörös
b35c1568f3
removed numpy_defs.h, scipy_defs.h
2020-11-25 21:03:35 +01:00
Zoltán Vörös
c7f47819e0
moved sosfilt to scipy/signal.c
2020-11-25 19:46:13 +01:00
Zoltán Vörös
532172f1bc
moved 4 functions into optimize
2020-11-25 19:26:26 +01:00
Zoltán Vörös
ae0276509c
fixed tests
2020-11-25 17:22:25 +01:00
Zoltán Vörös
9cb008a869
arrange all functions into numpy/scipy modules
2020-11-24 22:03:21 +01:00
Zoltán Vörös
21f7ffae9a
moved more sub-modules to numpy
2020-11-24 18:10:13 +01:00
Zoltán Vörös
a359cccf96
added numpy.c/h to the repository
2020-11-24 17:56:44 +01:00
Zoltán Vörös
f55b69d2ff
moved math constants to numpy module
2020-11-24 17:52:53 +01:00
Zoltán Vörös
a30b1c2dc1
removed unused ndarray->dense member
2020-11-24 07:18:17 +01:00
Zoltán Vörös
c4b06e419f
added Boolean initialisation option
2020-11-24 07:16:58 +01:00
Zoltán Vörös
7eade2b43c
fixed nan definition
2020-11-23 23:03:27 +01:00
Zoltán Vörös
a2dc565992
added inf/nan class level constants
2020-11-23 22:50:17 +01:00
Zoltán Vörös
1f6e5ca648
bumped version number to 1.4.10
2020-11-23 21:45:02 +01:00
Zoltán Vörös
2011510871
fixed fmin test
2020-11-23 21:43:34 +01:00
Zoltán Vörös
e8fcf2e94b
Merge branch 'master' into sort-fix
2020-11-23 19:02:46 +01:00
Zoltán Vörös
0284aae8ac
Merge branch 'master' into convolve-fix
2020-11-23 18:58:53 +01:00
Zoltán Vörös
c55e84b265
added in-place sort
2020-11-23 18:22:42 +01:00
Zoltán Vörös
f43fa2bffb
implemented convolve fix
2020-11-23 18:13:31 +01:00
Zoltán Vörös
67b268d1ad
fixing convolve
2020-11-23 07:32:01 +01:00
Zoltán Vörös
d384b3b63b
fixed linalg.norm
2020-11-23 07:03:17 +01:00
Zoltán Vörös
7262f3a8aa
fixed interp
2020-11-20 17:31:58 +01:00
Zoltán Vörös
5dcc298db2
fixed circuitpython compilation error
2020-11-20 15:04:09 +01:00
Zoltán Vörös
b93c4b95ab
split test scripts into numpy-compatible and circuitpy-compatible sets
2020-11-20 08:10:19 +01:00
Zoltán Vörös
2eb06ddd30
fixed testing error in ndarray
2020-11-19 19:53:37 +01:00
Zoltán Vörös
aa77523cad
fixed signedness problem in min/max
2020-11-19 19:35:06 +01:00
Zoltán Vörös
b8c892f922
Merge branch 'master' into full-fix
2020-11-19 19:24:28 +01:00
Zoltán Vörös
f7cf98650d
implemented full/zeros/ones fix
2020-11-19 19:22:47 +01:00
Zoltán Vörös
2851cf7376
fixed dtype creation code
2020-11-19 07:32:07 +01:00
Zoltán Vörös
72935d3f02
Merge branch 'master' into std-fix
2020-11-18 19:13:40 +01:00
Zoltán Vörös
28fd0b8275
fixed std
2020-11-18 19:12:01 +01:00
Zoltán Vörös
4f7dd719b3
Merge branch 'master' into size-fix
2020-11-18 17:31:15 +01:00
Zoltán Vörös
73349aee3a
removed size function from linalg
2020-11-18 17:07:03 +01:00
Zoltán Vörös
4e06f3614f
fixed trapz
2020-11-18 08:03:49 +01:00
Zoltán Vörös
629068c576
removed trailing spaces
2020-11-17 18:22:13 +01:00
Zoltán Vörös
c915abc68e
removed extra line of code
2020-11-17 18:20:08 +01:00
Zoltán Vörös
18408cdc5e
fixed indexing error in roll
2020-11-17 18:16:28 +01:00
Zoltán Vörös
be7f18e888
fixed in-place divide
2020-11-17 07:09:24 +01:00
Zoltán Vörös
424abb0d66
fixed in-place power
2020-11-17 07:06:44 +01:00
Zoltán Vörös
b17eb0284f
swapped N, M in eye
2020-11-16 22:40:58 +01:00
Zoltán Vörös
9d2e60a0e3
fixed indexing error in trace
2020-11-16 22:22:45 +01:00
Zoltán Vörös
a291cfe0c7
implemented clip fix
2020-11-16 22:02:28 +01:00
Zoltán Vörös
ba0751edc8
set NDARRAY_BINARY_USES_FUN_POINTER to 0
2020-11-16 18:33:03 +01:00
Zoltán Vörös
e311773963
added function pointer option to pow and true divide
2020-11-16 07:23:17 +01:00
Zoltán Vörös
91dc3b9bf4
added function pointers in vectorise
2020-11-13 17:06:59 +01:00
Zoltán Vörös
259f030750
added linalg_tools
2020-11-12 18:26:37 +01:00
Zoltán Vörös
31c678b6ee
factored out matrix inversion and Jacobi rotations
2020-11-12 18:26:01 +01:00
Zoltán Vörös
fdd99fe776
factored out the FFT kernel into a separate file
2020-11-12 08:52:39 +01:00
Zoltán Vörös
434ea7b04c
Merge branch 'master' into dtype2
2020-11-11 19:27:25 +01:00
Zoltán Vörös
964db3cc57
Merge branch 'master' into sum-fix
2020-11-11 18:13:31 +01:00
Zoltán Vörös
821cae1cc8
Merge branch 'master' into cumtrapz
2020-11-11 18:04:22 +01:00
Zoltán Vörös
584644ba71
improved sum accuracy of float types
2020-11-11 17:35:38 +01:00
Zoltán Vörös
080244a50a
improved the accuracy of trapz
2020-11-11 17:23:47 +01:00
Zoltán Vörös
a5c439b127
transpose fix
2020-11-11 07:35:14 +01:00
Zoltán Vörös
2ec3a422ce
dtype is exposed in circuitpython, too
2020-11-11 07:23:59 +01:00
Zoltán Vörös
1ca41e5d80
fixed slicing issues
2020-11-10 19:43:09 +01:00
Zoltán Vörös
24fe1dcbe1
fixes array casting glitch
2020-11-09 21:03:18 +01:00
Zoltán Vörös
091ab1925d
added the axis=None option to sum/mean/std
2020-11-09 19:01:51 +01:00
Zoltán Vörös
c97d05dc4a
fixed indexing/array in numerical
2020-11-06 19:08:26 +01:00
Zoltán Vörös
89ac466c1d
Merge branch 'master' into tools
2020-11-06 17:50:58 +01:00
Zoltán Vörös
b7c135faf7
added function pointer tools
2020-11-06 17:49:56 +01:00
Zoltán Vörös
0b47ac7bce
updated change log
2020-11-04 07:08:09 +01:00
Zoltán Vörös
ecb0a7775b
fixed pointer bug in eig
2020-11-03 21:28:32 +01:00
Zoltán Vörös
2f9ca94602
Merge branch 'master' into median
2020-11-03 21:01:49 +01:00
Zoltán Vörös
0f634f9ee3
median implemented for higher dimensional arrays
2020-11-03 20:50:41 +01:00
Zoltán Vörös
c84ea225bd
median implemented for linear arrays
2020-11-03 19:07:11 +01:00
Zoltán Vörös
adfa60fbc9
fixed bad error in numerical.sort
2020-11-03 17:39:18 +01:00
Zoltán Vörös
ca99f2f0e1
fixed iteration loop in norm, shape
2020-11-03 17:04:40 +01:00
Zoltán Vörös
db1a822c3b
fixed initialisation error in ndarray_make_new_core
2020-11-02 23:01:07 +01:00
Zoltán Vörös
dc4c9d692a
implemented second half of diag
2020-11-02 22:30:15 +01:00
Zoltán Vörös
e15c13feaa
fixed diagonal glitch
2020-11-02 22:14:58 +01:00
Zoltán Vörös
8c16c683a6
Merge branch 'master' into dtype
2020-11-02 21:54:35 +01:00
Zoltán Vörös
b7f95c4122
added an implementation of dtype
2020-11-02 21:52:12 +01:00
Zoltán Vörös
984ddf51b4
added dtype implementation
2020-11-02 18:06:29 +01:00
Zoltán Vörös
ee6e53d65b
fixed small error in argmin_argmax
2020-11-01 20:53:32 +01:00
Zoltán Vörös
475c0ae465
added diagonal and updated extract_pyi from circuitpython
2020-10-31 21:48:02 +01:00
Zoltán Vörös
13ce751255
bumped version number to 1.0.0
2020-10-30 23:15:53 +01:00
Zoltán Vörös
9df0ddf8f2
Merge branch 'tensor'
...
Updates the master branch with all changes implemented in tensor
2020-10-30 23:14:03 +01:00
Zoltán Vörös
4098558a35
docs can be generated from stubs now
2020-10-30 22:11:02 +01:00
Zoltán Vörös
1e69c5fc06
preparing docs for 1.0.0 release
2020-10-25 22:15:33 +01:00
Zoltán Vörös
a5242bb7b3
fixed CP-compatibilty in workflow file
2020-10-25 10:28:50 +01:00
d0f68c8560
Fix doc build problem in CircuitPython
...
CircuitPython doc build fails with this diagnostic:
```
/home/runner/work/circuitpython/circuitpython/shared-bindings/ulab/index.rst:220:'any' reference target not found: List[float]
```
Use double backticks instead of single backticks to differentiate between
a reference to a type and just "show in monospace font".
2020-10-24 15:08:48 -05:00
Zoltán Vörös
ee8b72addd
wrong type in indexing raises TypeError now
2020-10-24 18:43:32 +02:00
Zoltán Vörös
04fa205ece
Merge pull request #182 from v923z/slice-patch
...
Slice patch
2020-10-23 22:12:54 +02:00
Zoltán Vörös
3617b0735e
fixed indexing error
2020-10-23 22:09:49 +02:00
Zoltán Vörös
864d5a68bb
fixed compilation error in approx
2020-10-23 22:00:41 +02:00
Zoltán Vörös
ccb6be5b11
fixed compilation error in eye
2020-10-23 21:55:32 +02:00
Zoltán Vörös
96be400e08
bumped version number
2020-10-23 21:47:43 +02:00
Zoltán Vörös
e2be5a001e
slicing throws an IndexError, if the index is not the proper type
2020-10-23 21:44:54 +02:00
Taku Fukada
1d18ab0381
Update type hints for the new/modified functions
2020-10-23 06:00:38 +09:00
Zoltán Vörös
ddd553f76f
fixed slicing error
2020-10-21 07:12:25 +02:00
Zoltán Vörös
0bfba3bf1b
fixed binary operators for empty arrays
2020-10-17 23:35:24 +02:00
Zoltán Vörös
ca61961d22
fixed test scripts
2020-10-17 21:26:59 +02:00
Zoltán Vörös
e2fd36ed7a
fixed error in eye
2020-10-17 18:23:31 +02:00
Zoltán Vörös
29f1bad2d8
fixed small error in flatten
2020-10-17 17:03:37 +02:00
Zoltán Vörös
16b973d54c
fixed small slicing error
2020-10-17 14:57:57 +02:00
Zoltán Vörös
89801ab12c
restored circuitpython compatibility
2020-10-17 13:47:26 +02:00
Zoltán Vörös
5ab7b1cd3d
re-organised ndarray_properties.h
2020-10-17 10:28:17 +02:00
Zoltán Vörös
511bb5f6c9
added in-place operators for 1, 3, and 4 dimensions
2020-10-16 22:14:13 +02:00
Zoltán Vörös
6529a2ef16
fixed error introduced in the last commit
2020-10-16 08:01:51 +02:00
Zoltán Vörös
ca6e707f66
arrays can now be initialised from arrays
2020-10-16 07:54:43 +02:00
Zoltán Vörös
c29df37e7b
added concatenate
2020-10-15 18:26:12 +02:00
Zoltán Vörös
6723fdb66e
fixed #if/#endif clause
2020-10-14 21:07:54 +02:00
Zoltán Vörös
5389575c07
updated the arctan2 function
2020-10-14 21:03:29 +02:00
Zoltán Vörös
b724c99262
removed debug print
2020-10-14 20:28:39 +02:00
Zoltán Vörös
7af7042572
fixed in-place operators
2020-10-14 20:27:37 +02:00
Zoltán Vörös
c2fac359a5
updated around
2020-10-14 07:20:58 +02:00
Zoltán Vörös
d1c7af3cb5
implemented assignment into Boolean-indexed arrays
2020-10-13 18:15:45 +02:00
Zoltán Vörös
fadc54bd71
implemented Boolean indexing
2020-10-12 20:29:03 +02:00
Zoltán Vörös
a662414ba6
fixed error in numerical sum
2020-10-08 19:44:30 +02:00
Zoltán Vörös
94e4d9e672
fixed some tab <-> spaces oddities
2020-10-07 21:32:50 +02:00
Zoltán Vörös
2e08b2566d
added in-place operators
2020-10-07 21:01:11 +02:00
Zoltán Vörös
ff8d260809
fixed the subscript method
2020-10-06 20:06:51 +02:00
Zoltán Vörös
8dec1328ab
added copy method to ndarray
2020-10-06 07:12:19 +02:00
Zoltán Vörös
b2465a7c16
simplified ndarray code a bit
2020-10-01 19:39:35 +02:00
Zoltán Vörös
0f336ab65b
fixed >=, <= error in binary_op
2020-10-01 07:17:28 +02:00
Zoltán Vörös
0ede57ff42
removed extra if clause from cross product
2020-09-30 19:50:34 +02:00
Zoltán Vörös
6a359e59c8
added cross product to numerical
2020-09-30 19:48:48 +02:00
Zoltán Vörös
3f25cae135
ndarrays can now be unsubscribed
2020-09-30 18:02:04 +02:00
Zoltán Vörös
daed7bf3ce
found and fixed small errors in vectorise and poly
2020-09-30 07:20:57 +02:00
Zoltán Vörös
501663e3fe
added function iterator to ndarray
2020-09-29 18:48:02 +02:00
Zoltán Vörös
dfd4a6729b
added pre-processor switch for unary operators
2020-09-28 21:21:56 +02:00
Zoltán Vörös
7be869fe74
fixed issue with reverse operators in binary_op
2020-09-28 20:53:16 +02:00
Zoltán Vörös
9f917b23c2
added power to binary operators
2020-09-28 19:22:39 +02:00
Zoltán Vörös
2c8faf7680
split binary operators into separate functions
2020-09-26 19:15:43 +02:00
Zoltán Vörös
b7b54cba70
cosmetic changes
2020-09-25 21:12:01 +02:00
Zoltán Vörös
483e9c3dc5
added full
2020-09-24 19:40:58 +02:00
Zoltán Vörös
b7f11232ee
added logscale
2020-09-24 19:11:11 +02:00
Zoltán Vörös
86bed99394
added tobytes method
2020-09-23 20:07:42 +02:00
Zoltán Vörös
32369e56fb
implement numpy compatibility option
2020-09-22 19:08:39 +02:00
Zoltán Vörös
fd7090ce35
added math constants, degrees/radians and defined relevant constants
2020-09-21 21:37:19 +02:00
Zoltán Vörös
c631443971
fixed poly
2020-09-20 21:35:54 +02:00
Zoltán Vörös
58a205aec6
found and fixed error in argsort
2020-09-16 20:35:35 +02:00
Zoltán Vörös
fdd5920f7b
first implementation of argsort (still has small glitch)
2020-09-14 21:50:35 +02:00
Zoltán Vörös
f681f36bc6
fixed sort
2020-08-29 13:19:11 +02:00
Zoltán Vörös
a43e3a45b5
backup commit
2020-08-27 19:24:34 +02:00
Deqing Sun
1061251e06
add MICROPY_FLOAT_CONST for mp_obj_new_float
2020-08-24 14:11:17 -04:00
Deqing Sun
07c7404d95
add name
2020-08-24 07:29:07 -04:00
Deqing Sun
b03d36bcee
add MICROPY_FLOAT_CONST to float numbers
...
other files may need change too.
2020-08-24 07:28:00 -04:00
Deqing Sun
d56a001f16
fix bug for invert with diagonal 0 matrix
...
If there is any diagonal 0 in the process of Gauss-Jordan method, swap that row with a non-0 row below.
2020-08-23 19:36:12 -04:00
Deqing Sun
df0af031f1
fix bug for determinant with diagonal 0 matrix
...
If there is any diagonal 0 in the process of row reduction, swap that row with a non-0 row below.
2020-08-23 19:05:57 -04:00
Zoltán Vörös
8f9fc87dff
implemented roll
2020-08-21 18:27:33 +02:00
Zoltán Vörös
11cd3ac50a
fixed indexing error in flip
2020-08-19 16:50:52 +02:00
Zoltán Vörös
f179a1efc1
re-implemented flip
2020-08-19 16:48:08 +02:00
Zoltán Vörös
798f38a76c
updated the implementation of diff
2020-08-19 16:12:16 +02:00
Zoltán Vörös
b29bf6c0eb
implemented argmin/argmax
2020-08-18 16:42:01 +02:00
Zoltán Vörös
05b2123fbf
backup commit, no functional changes
2020-08-17 22:11:17 +02:00
Zoltán Vörös
115b3da2f6
fixed small error in linalg
2020-08-17 16:48:21 +02:00
Zoltán Vörös
ed4a66938b
backup commit, no functional changes
2020-08-17 16:43:52 +02:00
Zoltán Vörös
00f4cdfe53
cleaned up mean/std functions
2020-08-17 00:15:19 +02:00
Zoltán Vörös
43deb6cc3a
cleaned up numerical sum a bit
2020-08-15 22:25:18 +02:00
Zoltán Vörös
a0396df9b6
tabs to spaces in all files
2020-08-15 19:31:04 +02:00
Zoltán Vörös
6b33c912de
tabs to spaces
2020-08-15 19:24:49 +02:00
Zoltán Vörös
a97d7a7b7e
more linting
2020-08-15 19:02:55 +02:00
Zoltán Vörös
1b9c212899
fixed tabs
2020-08-15 18:57:10 +02:00
Zoltán Vörös
4029c6dd86
fixed tabs
2020-08-15 18:56:07 +02:00
Zoltán Vörös
b24886826f
fixed tabs
2020-08-15 18:54:08 +02:00
Zoltán Vörös
378bd4ebab
fixed tabs
2020-08-15 18:43:52 +02:00
Zoltán Vörös
b95a0816f0
fixed tabs
2020-08-15 18:43:35 +02:00
Zoltán Vörös
1b7dc263e9
fixed tabs
2020-08-15 18:42:55 +02:00
Zoltán Vörös
fe08d5be1b
fixed tabs
2020-08-15 18:42:01 +02:00
Zoltán Vörös
71c73f095a
fixed tabs
2020-08-15 18:39:03 +02:00
Zoltán Vörös
0caf03bd3e
fixed tabs
2020-08-15 18:38:29 +02:00
Zoltán Vörös
eb696d9d91
factored out associative operators
2020-08-15 18:35:28 +02:00
Zoltán Vörös
382d7a613e
numerical sum sort of works now
2020-08-15 00:39:12 +02:00
Zoltán Vörös
a81a77a996
found some flash savings
2020-08-13 22:24:40 +02:00
Zoltán Vörös
506986fcb4
found/fixed bug in iterator
2020-08-13 22:08:12 +02:00
Zoltán Vörös
fca36e6d64
fixed iterator
2020-08-13 22:02:16 +02:00
Zoltán Vörös
76c1a3d242
linalg can now be compiled
2020-08-13 20:16:10 +02:00
Zoltán Vörös
621dca8e3b
fixed filter module
2020-08-13 15:46:23 +02:00
Zoltán Vörös
3428fb8123
moved user settings to ulab.h
2020-08-13 15:17:22 +02:00
Zoltán Vörös
da1d8c2ac1
shaved off 200 bytes for 1D arrays
2020-08-13 15:13:44 +02:00
Zoltán Vörös
80511c13e4
fixed couple of comments
2020-08-13 15:05:26 +02:00
Zoltán Vörös
1b08404975
fixed flatten for views
2020-08-13 14:52:33 +02:00
Zoltán Vörös
d903b0a7d2
fixed functions in compare module
2020-08-13 13:29:56 +02:00
Zoltán Vörös
5ec64d39ee
fft works with views now
2020-08-13 12:45:35 +02:00
Zoltán Vörös
034a8d7b58
fixed unary operators (ndarray_copy_view)
2020-08-13 12:11:12 +02:00
Zoltán Vörös
3be74df891
fixed iteration loops in vectorise
2020-08-12 15:46:59 +02:00
Zoltán Vörös
7e6216a1fc
assignment by slices works
2020-08-11 15:12:16 +02:00
Zoltán Vörös
b212bd4cb9
fixed iterator code
2020-08-11 09:28:44 +02:00
Zoltán Vörös
0268f990d7
added ndinfo function
2020-08-08 12:43:57 +02:00
Zoltán Vörös
b1b93994c2
with the exception of pow, binary operators are functional
2020-08-08 11:20:17 +02:00
Zoltán Vörös
b4527192f5
removed unnecessary pointer shifting in the binary loops
2020-08-07 23:23:32 +02:00
Zoltán Vörös
847c49064b
tensor dimension is displayed in version number
2020-08-07 23:00:36 +02:00
Zoltán Vörös
20796a10b3
tensor dimension can now be configured
2020-08-07 22:34:24 +02:00
Zoltán Vörös
41c3008fdd
removed unused structure from ndarray.h
2020-08-07 20:32:20 +02:00
Zoltán Vörös
63efdbf5a3
proof of concept binary function is working
2020-08-07 20:31:43 +02:00
Zoltán Vörös
d59fc169cd
made code in printout tighter
2020-08-07 17:54:26 +02:00
Zoltán Vörös
44f0c46839
fixed printout
2020-08-07 17:52:41 +02:00
Taku Fukada
f9322380de
Minor fixes on Python stubs
2020-08-06 23:49:51 +09:00
Zoltán Vörös
8c4d02f755
not entirely functional, safety backup
2020-08-05 22:35:21 +02:00
mdaeron
60f6fa6e6b
Remove double parentheses in numerical.c
...
This avoids errors when compiling the unix port on MacOS.
2020-08-04 15:31:19 +02:00
Zoltán Vörös
bb023e267c
pulled in changes from master
2020-08-03 20:58:51 +02:00
Zoltán Vörös
368b23ff8b
fixed small issue in argsort, and updated documentation
2020-08-03 20:41:12 +02:00
Zoltán Vörös
c9b7881add
pulled in most recent changes from master
2020-07-31 23:25:36 +02:00
Zoltán Vörös
5cd5aaba35
approx is compiles
2020-07-30 22:07:53 +02:00
Zoltán Vörös
162b39470d
fft is working
2020-07-30 21:38:31 +02:00
Zoltán Vörös
b4748dc966
fixed a couple of errors in ndarray.c
2020-07-30 21:16:49 +02:00
Zoltán Vörös
4ddbd8b73f
base code can be compiled
2020-07-30 20:49:14 +02:00
Taku Fukada
129ad86b8e
Add type hints to Python stubs
2020-07-31 01:06:48 +09:00
Zoltán Vörös
4e218f9d81
bumped version number to 0.54.1
2020-07-29 18:51:57 +02:00
Zoltán Vörös
4690ef7c2c
fixed error in ulab_create.c
2020-07-29 18:44:51 +02:00
Zoltán Vörös
345b74e3ca
switched to size_t length, and added sanity checks in approx.c
2020-07-29 18:38:08 +02:00
Zoltán Vörös
3a6deef855
switched to size_t length in linspace
2020-07-29 18:22:25 +02:00
Zoltán Vörös
ddfe1754ca
switched to size_t length in reshape
2020-07-29 18:18:42 +02:00
Zoltán Vörös
bae51f8edb
switched to size_t length in poly.c
2020-07-29 18:17:11 +02:00
Zoltán Vörös
a789bd67d0
switched to size_t length in fft
2020-07-29 18:12:27 +02:00
Jonathan Hogg
f41d3eeeb7
Add MICROPY_FLOAT_CONST to all fp constants.
...
In order to get ulab to compile correctly against single floating point
all of the constants need to switch to single format. Conveniently
MicroPython has provided a macro to manage this switch. Use this
througout.
Unfortunately also introduces a bunch of whitespace changes because
there is a mass of trailing whitespace in the codebase and my editor is
(correctly) configured to remove this.
2020-07-24 11:58:45 +01:00
Roberto Colistete Jr
39afe5f2ad
numerical.c : fixed 'out' may be used uninitialized error in function 'numerical_sort_helper'
2020-07-23 18:18:29 -03:00
Zoltán Vörös
f8bf869a45
fixed indentation error in approx.c
2020-07-23 22:08:29 +02:00
Roberto Colistete Jr
c98cdfdb97
lingalg.norm : fixed comments again
2020-07-23 16:57:25 -03:00
Roberto Colistete Jr
2d12162d8f
lingalg.norm : moved after inv and fixed coments
2020-07-23 16:42:35 -03:00
Roberto Colistete Jr
7ad3542de6
lingalg.norm : fixed coments
2020-07-23 16:19:05 -03:00
Roberto Colistete Jr
0064995d2c
lingalg.norm : added coments and v0.54.0 to ulab-change-log
2020-07-23 16:15:51 -03:00
Roberto Colistete Jr
86581222c4
fix lingalg.norm to new folder structure
2020-07-23 16:07:11 -03:00
Zoltán Vörös
ab085333ca
Merge pull request #150 from v923z/create-rename
...
renamed create.c/h, moved stubs from ulab.c to ulab_create.c
2020-07-23 19:13:52 +02:00
Zoltán Vörös
fe8a10dd94
renamed create.c/h, moved stubs from ulab.c to ulab_create.c
2020-07-23 19:10:50 +02:00
20243311e1
Remove trace of 'extras' module
...
.. this caused a build error in circuitpython:
../../extmod/ulab/code/ulab.c:162:9: error: "ULAB_EXTRAS_MODULE" is not defined, evaluates to 0 [-Werror=undef]
162 | #if ULAB_EXTRAS_MODULE
| ^~~~~~~~~~~~~~~~~~
2020-07-23 12:01:58 -05:00
Zoltán Vörös
f6fd605300
Merge pull request #149 from v923z/documentation
...
Documentation
2020-07-23 19:01:15 +02:00
Zoltán Vörös
a3678b0de7
re-arranged functions in compare.c
2020-07-23 18:56:18 +02:00
Zoltán Vörös
e91e2db0dd
re-arranged functions in approx.c
2020-07-23 18:54:03 +02:00