Comments (4)
I think this has been fixed in the testing branch. (All occurrences of fabs have been replaced by MICROPY_FLOAT_C_FUN(fabs). This is the proper way of handling this issue, because the definition of float
is platform dependent: https://micropython-ulab.readthedocs.io/en/latest/ulab.html#ndarray-the-basic-container) Can you, please, compile against testing?
from micropython-ulab.
Yes this particular issue is fixed in testing, but in the testing branch numerical.c has other issues:
CC ../../extmod/ulab/code/vectorise.c
../../extmod/ulab/code/numerical.c: In function 'numerical_sum_mean_ndarray':
../../extmod/ulab/code/numerical.c:135:5: error: implicit declaration of function 'printf' [-Werror=implicit-function-declaration]
printf("%ld, %ld\n", m, n);
^~~~~~
../../extmod/ulab/code/numerical.c:135:5: error: incompatible implicit declaration of built-in function 'printf' [-Werror]
../../extmod/ulab/code/numerical.c:135:5: note: include '<stdio.h>' or provide a declaration of 'printf'
../../extmod/ulab/code/numerical.c:135:15: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Werror=format=]
printf("%ld, %ld\n", m, n);
~~^
%d
../../extmod/ulab/code/numerical.c:135:20: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Werror=format=]
printf("%ld, %ld\n", m, n);
~~^
%d
Including stdio.h and using %zu fixes it.
Can the array fixes be merged in master ? I don't want to have to fork and maintain this repo.
from micropython-ulab.
This printout was there for debugging purposes, and is not needed at all. I have removed it, and pushed the fix to master. Let me know if it still doesn't work. (I could compile it for the unix port.)
from micropython-ulab.
It builds now, thanks for fixing it!
from micropython-ulab.
Related Issues (20)
- [BUG] crash deleting element of ulab array HOT 5
- [FEATURE REQUEST] add out keyword argument to math functions HOT 1
- [BUG] ESP-32 Installation problem HOT 3
- [FEATURE REQUEST] Is there anyway to load pickle into micropython? HOT 1
- [FEATURE REQUEST] Support for Retrain the model on a device in MicroPython HOT 1
- [BUG] Pico Device Unrecognised on Windows - Latest Development Build HOT 3
- [BUG] Compile error building ports/unix from CircuitPython (8de9d5a52) - uses ulab (6619c20) HOT 1
- [BUG] Not building with latest micropython repo HOT 4
- [BUG] element wise "and logic" & operator doesnt work. HOT 2
- [BUG] numpy.where have a strange behavior when receiving np.bool as its conditions HOT 14
- numpy.load() feature upgrade HOT 11
- [BUG] IndexError: indices must be integers, slices, or Boolean lists HOT 1
- ulab code size of certain functions grew a lot with gcc13, when not used with LTO HOT 1
- [BUG] Operations on uint8 don't respect upcasting rules HOT 1
- [BUG]`np.delete`,if pass the second positional argument empty list `[]`,the program crashed. HOT 3
- [BUG] HOT 2
- [BUG] Reshaping a slice creates an empty array HOT 6
- [FEATURE REQUEST] implement numpy.take HOT 1
- [BUG] Some type annotations don't include scalars HOT 5
- [BUG] ReadTheDocs link in README.md is years out of date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-ulab.