31617daa4f
ndarray: Use ndarray_is_dense() to decide if array is buffer-able
...
This doesn't work as expected, because `np.eye(4)` isn't reported as
'dense'.
2021-02-20 15:33:25 -06:00
Zoltán Vörös
6493a18ea7
backporting fix for dot function
2021-02-20 14:09:36 +01:00
Zoltán Vörös
4501fd91ab
fix eye, ones, full, zeros for bool dtype
2021-02-20 13:44:35 +01:00
Zoltán Vörös
f4604d208b
fix ndarray_is_dense
2021-02-20 08:16:24 +01:00
7aeb73a16e
ndarray: Fix memoryview(ulab.array(...))
...
For now this only handles the 1D case. In theory it would work for
any dense array, however, I found that ndarray_is_dense didn't behave
for me so I implemented this instead.
Add a test. Before the change, this test would segfault.
Closes #328 .
2021-02-19 08:29:41 -06:00
Zoltán Vörös
743d86487c
Merge pull request #299 from v923z/legacy-std-fix
...
fixed the calculation of the standard deviation on iterables
2021-01-29 16:41:06 +01:00
Zoltán Vörös
483ce148ee
fixed the calculation of the standard deviation on iterables
2021-01-29 15:34:52 +01:00
Jeff Epler
8b804f3bcd
Fix doc build error
...
A newline is required here for the markup to be vaild.
```
.../ulab/index.rst:426:Explicit markup ends without a blank line; unexpected unindent.
```
2021-01-15 12:00:05 -06:00
Zoltán Vörös
3592e54c22
Merge pull request #288 from jepler/fix-stubs
...
frombuffer: Add type declarations to stubs
2021-01-15 16:16:56 +01:00
Jeff Epler
6bc34d12bb
frombuffer: Add type declarations to stubs
2021-01-15 09:14:00 -06:00
Zoltán Vörös
435fee32d1
fixed small error in the code
2021-01-15 08:04:57 +01:00
Zoltán Vörös
fe3e19ca41
added frombuffer stub
2021-01-14 20:50:50 +01:00
Zoltán Vörös
3848e4d551
added frombuffer array initialisation function
2021-01-14 20:31:47 +01:00
Zoltán Vörös
96fe29d9c7
found copy-paster errors in diff macro
2021-01-14 20:15:19 +01:00
Zoltán Vörös
e387404a82
fixes issue #285
2021-01-14 20:08:23 +01:00
00e07bfa5b
fix clang cast problem
...
Closes #284 .
2021-01-13 15:49:08 -06:00
mdaeron
4452e59a09
Update ulab.c
...
increment version number
2021-01-11 20:27:40 +01:00
mdaeron
af5d24f531
Update ndarray.c
...
Fix bug in ndarray_tobytes()
2021-01-11 20:13:10 +01:00
Zoltán Vörös
b52292919b
Merge pull request #272 from CallumJHays/bug/esp32-v1.13-ambiguous-float
...
Specify float literals as float
2020-12-27 12:01:22 +01:00
CallumJHays
2ee2be96a3
use MICROPY_FLOAT_CONST macro
2020-12-26 12:34:41 +10:00
CallumJHays
eea6b1ed6d
Add dtype stub
2020-12-21 16:45:31 +10:00
CallumJHays
9cd7ba13f7
Fix ambiguous float compiler issue
2020-12-21 16:42:25 +10: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