Search found 168 matches
- Mon Aug 30, 2021 11:02 am
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 95107
Re: ulab, or what you will - numpy on bare metal
Hi, i am looking for a way to make a hilbert transform in micropython. Is it normally a part of scipy module. In order to get the Hilbert transform, do you need anything beyond a combination of the Fourier and inverse Fourier transforms, and standard array operations? Is it possible to do that in m...
- Sat May 22, 2021 11:12 am
- Forum: Development of MicroPython
- Topic: creating native modules with sub-modules
- Replies: 0
- Views: 1577
creating native modules with sub-modules
Hi all, Following up on a recurring request, I am trying to turn ulab into a native module. I can compile the example provided in the documentation, but I fail miserably, as soon as I try to define a sub-module for factorial . Is it possible at all to have sub-modules of native modules at this point...
- Fri Mar 05, 2021 7:52 am
- Forum: Development of MicroPython
- Topic: Tensorflow and about contributing
- Replies: 18
- Views: 14237
Re: Tensorflow and about contributing
I'm integrating with ulab now for numpy support but at the moment not enough operations are supported to run the mfcc.py files available publicly so instead I'm wrapping the c/c++ microfrontend library within the tensorflow library. You can fix this here: https://github.com/v923z/micropython-ulab/i...
- Mon Feb 08, 2021 5:41 pm
- Forum: Development of MicroPython
- Topic: How to use mathematical functions
- Replies: 7
- Views: 4136
Re: How to use mathematical functions
This library can only be compiled for some stm32 cards. I think this is not true. Here are a couple of counter-examples: https://github.com/v923z/micropython-ulab/#firmware https://gitlab.com/rcolistete/micropython-samples/-/tree/master/ESP8266/Firmware https://gitlab.com/rcolistete/micropython-sam...
- Sun Feb 07, 2021 4:51 pm
- Forum: Development of MicroPython
- Topic: How to use mathematical functions
- Replies: 7
- Views: 4136
Re: How to use mathematical functions
I would like to add to my C file some mathematical functions ( like 'sqrt' to calculate the standard deviation that it's equal to sqrt(variance) ) Pretty much everything you can think of is already implemented in ulab: https://github.com/v923z/micropython-ulab/. You can also directly pipe data into...
- Mon Aug 17, 2020 8:59 am
- Forum: Development of MicroPython
- Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
- Replies: 16
- Views: 7484
Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
To add to this I created builds with and without MICROPY_PY_REVERSE_SPECIAL_METHODS for Pyboard D SF6W and for ESP8266. On each platform I verified that the reverse special methods only work with the appropriate build. I then tried to figure out exactly what resource is being conserved by disabling...
- Sun Aug 16, 2020 3:35 pm
- Forum: Development of MicroPython
- Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
- Replies: 16
- Views: 7484
Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
That's a very good point. It calls into question whether there is much merit in MicroPython supporting only this subset. In micropython, you are usually not faced with this problem: I believe, there is only one case, where two operands are of different kind, namely, when a string is multiplied by a...
- Sat Aug 15, 2020 4:32 pm
- Forum: Development of MicroPython
- Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
- Replies: 16
- Views: 7484
Re: Reverse special methods and numeric classes
Thinking about this some more, the absence of these special methods is problematic, especially __rtruediv__ . If you have a class Foo representing some numeric type, you might ask users to put other types on the RHS: f = Foo() g = f + 4 # uses normal special method h = 3 - f # Ask users to avoid th...
- Sat Aug 15, 2020 4:29 pm
- Forum: Development of MicroPython
- Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
- Replies: 16
- Views: 7484
Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
... when the firmware size doesn't fit the firmware partition. This problem can be helped in a number of ways. 1. In ulab, you can exclude sub-modules. There are some that are somewhat obscure (e.g., approx, or filter, or compare), and might not hold general appeal. They are there, but it doesn't m...
- Fri Aug 07, 2020 4:04 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 95107
Re: ulab, or what you will - numpy on bare metal
Thanks! I have updated the link.rcolistete wrote: ↑Fri Aug 07, 2020 3:35 pmSome news :
- my new MicroPython Firmwares repository, where currently there are 60 firmware files with ulab (v0.54.0 or v0.54.2)