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
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
115b3da2f6
fixed small error in linalg
2020-08-17 16:48:21 +02:00
Taku Fukada
f9322380de
Minor fixes on Python stubs
2020-08-06 23:49:51 +09: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
368b23ff8b
fixed small issue in argsort, and updated documentation
2020-08-03 20:41:12 +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
Zoltán Vörös
ac38e8bc5a
re-arranged functions in poly.c
2020-07-23 18:51:57 +02:00
Zoltán Vörös
9cf30ad9f2
re-arranged functions in linalg.c
2020-07-23 18:50:47 +02:00
Zoltán Vörös
2b55b79471
re-arranged functions in numerical.c
2020-07-23 18:47:14 +02:00
Zoltán Vörös
e5341bcf35
added STATIC to create.c
2020-07-23 18:23:52 +02:00
Zoltán Vörös
c93faa9a9c
fixed docs in approx.c
2020-07-22 21:56:06 +02:00
Zoltán Vörös
b6252474e9
fixed docs in fft.c
2020-07-22 21:53:10 +02:00
23e1ef3b11
Add newlines where required in .rst files
2020-07-22 14:05:46 -05:00
Zoltán Vörös
4759264994
added user/ files
2020-07-22 20:34:48 +02:00
Zoltán Vörös
80503300ad
re-organised code, so that circuitpython documentation can automatically be generated
2020-07-22 20:19:14 +02:00
Zoltán Vörös
651f2029af
Merge pull request #147 from v923z/documentation
...
Documentation
2020-07-22 19:18:29 +02:00
Zoltán Vörös
cc721aa216
added stubs to vectorise.c
2020-07-22 19:13:09 +02:00