Zoltán Vörös
58cde9a4b1
allow approx functions to take iterable arguments
2021-06-03 09:43:18 +02:00
Zoltán Vörös
8493f8ed98
add type specifier to pointer
2021-06-03 08:32:10 +02:00
Zoltán Vörös
9aefb4242d
vectorised functions work nested iterables now
2021-06-03 08:27:23 +02:00
Zoltán Vörös
4edb6aa318
fix upcasting rules for ndarray + scalar
2021-06-01 17:32:18 +02:00
Zoltán Vörös
370d6c9bed
fix nan return value
2021-05-24 20:02:38 +02:00
Zoltán Vörös
52795a86ed
fix nan for macintosh
2021-05-22 14:46:10 +02:00
Zoltán Vörös
2c84309139
fix all/any/median for empty arrays
2021-05-22 14:31:13 +02:00
Zoltán Vörös
bfe672532d
fix all/any for empty arrays
2021-05-22 14:20:57 +02:00
Zoltán Vörös
3b2d7ddf04
Merge pull request #370 from adafruit/lowercase_macros
...
Lowercase MP macros
2021-04-27 21:43:12 +02:00
Tsutomu IKEGAMI
93cb294765
Fix implementation of math constants (e, inf, nan, pi).
...
Originally, math constants are implemented for MICROPY_OBJ_REPR = A and B.
Modify float object representations to work with MICROPY_OBJ_REPR = C and D.
2021-04-23 15:54:16 +09:00
Scott Shawcroft
e3bf07cabb
Lowercase MP macros
2021-04-22 17:54:02 -07:00
ef65415b55
CircuitPython make check-stubs fixes
2021-04-03 12:10:08 -05:00
9cd13000b7
ulab.array -> ulab.ndarray
...
This was flagged as an error in building circuitpython, since ulab.array
doesn't name a type object.
# Conflicts:
# code/numpy/linalg/linalg.c
2021-04-03 12:06:07 -05:00
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
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
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
Zoltán Vörös
3fb04aedac
fix dot function
2021-02-23 23:17:45 +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
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
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
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
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
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
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
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
941d36f635
moved frombuffer to ulab_create
2020-11-26 18:53:29 +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