Zoltán Vörös
13ef14c29a
even more linting
2020-07-16 22:27:49 +02:00
Zoltán Vörös
7739ae21f8
even more linting
2020-07-16 22:27:01 +02:00
Zoltán Vörös
49be9e0ba7
more linting
2020-07-16 22:07:00 +02:00
Zoltán Vörös
bdaa4b3984
fixed linting issues
2020-07-16 22:05:33 +02:00
Zoltán Vörös
33451ee285
Merge branch 'master' into trapz
2020-07-16 21:18:09 +02:00
Zoltán Vörös
dfe560150a
first implementation of trapz
2020-07-16 21:12:46 +02:00
Zoltán Vörös
f5c15f0c4c
reverted changes in master
2020-07-16 21:10:14 +02:00
Zoltán Vörös
0443a2a3ed
fixed small bug in trapz
2020-07-16 20:55:42 +02:00
Zoltán Vörös
059994774d
first implementation of trapz
2020-07-16 20:52:53 +02:00
Zoltán Vörös
f171235a95
Merge pull request #136 from rcolistete/fix_gcc-arm_v10.1
...
Fix Incompatibility between gcc-arm 10.1 and ulab + MicroPython
2020-07-16 08:49:37 +02:00
Roberto Colistete Junior
e75729cb27
Update vectorise.h
2020-07-16 03:38:15 -03:00
Roberto Colistete Junior
3bb1417211
Update extras.h
2020-07-16 03:37:35 -03:00
Roberto Colistete Junior
40503d0f7e
not compatible with '_thread' module
...
ulab not compatible with enabling '_thread' module from the make command :
- building ulab with thread enabled in MicroPython :
`$ make -j8 CFLAGS_EXTRA='-DMICROPY_PY_THREAD=1' BOARD=PYBV11 USER_C_MODULES=../../../ulab all`
yields a firmware with '_thread' module but without 'ulab' module, because 'CFLAGS_EXTRA' is used in the make command and in 'ulab/code/micropython.mk', so the value of the last is ignored;
- the solution is to use 'override' and '+=' in in last line of 'ulab/code/micropython.mk' :
`override CFLAGS_EXTRA += -DMODULE_ULAB_ENABLED=1`
2020-07-14 10:55:10 -03:00
Zoltán Vörös
fe7aa27238
fixed argmin/argmax error in issue #129
2020-06-29 21:46:45 +02:00
Zoltán Vörös
526ffb4c78
updated readme, version number and change log
2020-06-19 22:06:47 +02:00
Zoltán Vörös
17c6d605ca
added zi keyword argument to sosfilt
2020-06-18 22:24:26 +02:00
Zoltán Vörös
f9cf519843
first implementation of sosfilt
2020-06-17 22:24:17 +02:00
Zoltán Vörös
37140d531e
added mp_obj_slice_indices to ndarray.c, so that it compiles for openmv
2020-06-16 19:32:41 +02:00
Zoltán Vörös
1231ac877e
version that actually compiles in openmv
2020-06-15 22:46:46 +02:00
Zoltán Vörös
a73201a5a4
fixes compilation error (compatibility with older versions of micropython) in openmv
2020-06-12 07:50:37 +02:00
Jeff Epler
0394801933
Merge pull request #122 from jepler/circuitpy-is-int
...
Updates needed to build latest code on CircuitPython
2020-06-01 10:26:07 -05:00
cbdd1295c1
Mark parameters as unused
...
As far as I can tell, these are not checked for the sake of efficiency.
This silences compiler diagnostics when building CircuitPython
```
../../extmod/ulab/code/approx.c:25:12: error: no previous prototype for ‘approx_python_call’ [-Werror=missing-prototypes]
mp_float_t approx_python_call(const mp_obj_type_t *type, mp_obj_t fun, mp_float_t x, mp_obj_t *fargs, uint8_t nparams) {
^~~~~~~~~~~~~~~~~~
```
2020-06-01 09:00:42 -05:00
a2aa5d3a58
approx: Mark functions as stat if they are used only in this file
...
This fixes the diagnostic when building circuitpython:
```
../../extmod/ulab/code/approx.c:25:12: error: no previous prototype for ‘approx_python_call’ [-Werror=missing-prototypes]
mp_float_t approx_python_call(const mp_obj_type_t *type, mp_obj_t fun, mp_float_t x, mp_obj_t *fargs, uint8_t nparams) {
^~~~~~~~~~~~~~~~~~
```
2020-06-01 08:59:35 -05:00
1f3836d16f
ndarray: Let mp_obj_is_int work on circuitpython
2020-06-01 08:29:34 -05:00
Zoltán Vörös
666dc77fad
fixes min/max error from adafruit/circuitpython #2984
2020-06-01 08:42:43 +02:00
Zoltán Vörös
077bcc51ab
Merge branch 'master' into approx
2020-05-19 20:53:33 +02:00
Zoltán Vörös
78438727c4
Merge branch 'master' into print
2020-05-19 20:44:54 +02:00
Zoltán Vörös
f00d5dc6de
fix for issue 117
2020-05-19 08:56:34 +02:00
Zoltán Vörös
8631b771d2
cleaned up documentation on approx sub-module
2020-05-18 19:44:26 +02:00
Zoltán Vörös
e2cae23253
vectorize can now take scalars
2020-05-06 23:49:07 +02:00
Zoltán Vörös
6590acc6c4
added vectorisation of generic python function
2020-05-06 23:29:27 +02:00
Zoltán Vörös
d5e59cc21f
no functional change, backup
2020-05-06 21:22:54 +02:00
Zoltán Vörös
8f5edbb808
bumped ulab version number to 0.45
2020-05-05 21:16:10 +02:00
Zoltán Vörös
35cdc9f976
began work with curve_fit
2020-05-05 21:13:53 +02:00
Zoltán Vörös
5c027e44c1
added function wrapper approx_python_call
2020-05-03 17:05:27 +02:00
Zoltán Vörös
2ead6cbc21
added equal/not_equal to compare.c
2020-05-03 11:00:41 +02:00
Zoltán Vörös
70666817ce
added set_printoptions/get_printoptions functions
2020-05-01 11:53:39 +02:00
Zoltán Vörös
6615290fdf
add approx sub-module with fmin, newton, and bisect functions
2020-04-30 22:33:21 +02:00
a7502f6243
ulab.h: Actually allow excluding modules
2020-04-26 20:37:14 -05:00
Zoltán Vörös
a081c28998
Merge branch 'master' into minimax
2020-04-21 23:27:31 +02:00
Zoltán Vörös
855384f579
implemented minimum/maximum and clip in the compare module
2020-04-21 22:35:17 +02:00
Zoltán Vörös
fb05e2585c
pulling in jepler's argument handling improvements
2020-04-20 23:20:30 +02:00
Zoltán Vörös
c9519e59a8
Merge pull request #103 from v923z/revert-101-polyfit-argument-checking
...
Revert "polyfit: Argument handling improvements"
2020-04-20 23:05:01 +02:00
Zoltán Vörös
3c1fb52efb
Merge pull request #104 from v923z/compile
...
fix compilation errors due to casting of floats
2020-04-20 23:03:12 +02:00
Zoltán Vörös
a0e5f3a474
fix compilation errors due to casting of floats
2020-04-20 22:55:21 +02:00
Zoltán Vörös
f014128595
backup commit
2020-04-20 20:54:24 +02:00
Zoltán Vörös
d29cc8632e
Revert "polyfit: Argument handling improvements"
2020-04-20 16:20:44 +02:00
d0b11a6081
polyfit: Argument handling improvements
...
* In the 3-args case, the lengths of the arguments were not checked
* in the 3-args case, the type of the 2nd argument was not checked
* gcc falsely diagnosed a `maybe-uninitialized` variable because it
did not see that the branches of the if() statement were mutually
exclusive
It's this third issue that originally drew my attention to this code,
adafruit/circuitpython#2787
2020-04-20 07:58:30 -05:00
Zoltán Vörös
d1f2d80581
fixed compilation error in issue #98
2020-04-18 09:05:47 +02:00
Zoltán Vörös
2b7d96f25d
fix indexing error in linalg.dot
2020-04-14 09:05:22 +02:00