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