Commit graph

767 commits

Author SHA1 Message Date
e9613d6114 new failing test: memoryview of non-square array 2021-02-20 15:34:07 -06:00
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
2ecad9586d
Merge pull request #333 from v923z/legacy-dot
backporting fix for dot function
2021-02-20 14:14:12 +01: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
959bc0ebfa
Merge pull request #332 from v923z/legacy-bool-eye
fix eye, ones, full, zeros for bool dtype
2021-02-20 13:54:11 +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
Zoltán Vörös
8d156616bf
Merge pull request #329 from jepler/array-memoryview-legacy
ndarray: Fix memoryview(ulab.array(...))
2021-02-19 16:14:41 +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
Zoltán Vörös
a9bc6b71c1
Merge pull request #289 from jepler/fix-legacy-doc-build
Fix doc build error
2021-01-15 19:36:20 +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
a093b3a3cb
Merge pull request #287 from v923z/diff-fix
fixes issue #285
2021-01-14 20:17: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
Zoltán Vörös
27229be5b7
Merge pull request #286 from jepler/ci-macos
Fix macos build (mp & cp), add mac builds to ci
2021-01-14 19:43:02 +01:00
cbe3e4c2ad continue chasing cp+mac build errors 2021-01-13 16:25:25 -06:00
91076ad408 continue chasing cp+mac build errors 2021-01-13 16:16:07 -06:00
89ecef5a20 get rid of (non-portable?) sed -i 2021-01-13 16:12:46 -06:00
99984d0042 build-cp: Eliminate axtls, work around adafruit/circuitpython#3990 2021-01-13 16:09:21 -06:00
579f6e623c try again to install deps sanely 2021-01-13 15:51:01 -06:00
00e07bfa5b fix clang cast problem
Closes #284.
2021-01-13 15:49:08 -06:00
5a8c09123f try again to install cp deps
.. the doc-related items are removed since the build process does not
currently test doc building
2021-01-13 15:47:30 -06:00
1d4ea95a80 ci: Build circuitpython+macos 2021-01-13 15:45:35 -06:00
8680051d29 ci: invoke build.sh
.. otherwise we have to maintain more stuff in two places
2021-01-13 15:45:25 -06:00
f383766add reduce amount of cloned stuff 2021-01-13 15:44:14 -06:00
eac578603d Get rid of nonportable nproc
.. using a Python incantation instead.  Mac doesn't have
nproc.
2021-01-13 15:31:01 -06:00
793eef4030 Add portable version of readlink -f
from https://github.com/ko1nksm/readlinkf/blob/master/readlinkf.sh
(license: CC0)

Mac readlink does not support the -f flag, which is not
in POSIX.
2021-01-13 15:30:06 -06:00
5d6d7a3248 ci: fix running micropython tests 2021-01-13 15:15:24 -06:00
897c5a528c ci: get rid of need for ffi, btree 2021-01-13 15:14:16 -06:00
2a81310a96 workflows: Also build on macos 2021-01-13 15:03:09 -06:00
Zoltán Vörös
d62d07ea0b
Merge pull request #283 from mdaeron/master
Should close https://github.com/v923z/micropython-ulab/issues/282
2021-01-11 20:31:33 +01:00
mdaeron
734a2898f6
Update ulab-change-log.md
version 1.6.1
2021-01-11 20:29:58 +01: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
18c974798d
added missing clone command 2021-01-09 09:01:41 +01:00
Zoltán Vörös
771b3d837f
Merge pull request #279 from v923z/v923z-readme
updated readme.md with instructions for compiling for EPS32
2021-01-08 12:00:02 +01:00
Zoltán Vörös
7c782ccb6c
Update README.md
Co-authored-by: Cal Hays <callumjhays@gmail.com>
2021-01-08 11:57:39 +01:00
Zoltán Vörös
5749930280
updated readme.md with instruction for compiling for EPS32 2021-01-08 09:17:52 +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
Zoltán Vörös
2788b19906
Merge pull request #270 from CallumJHays/bug/add-array.dtype-stub
Add `array.dtype` stub
2020-12-23 21:21:06 +01: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