-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add complex support #366
add complex support #366
Conversation
Thanks for this. I've tried running on an ESP32 with MicroPython v1.17 but get kernel panics when doing any operations. Any ideas what I may have done wrong? |
@wired8 This draft is based on an older version of |
@v923z thanks for the quick response. Specifically I'm trying to port some filters from scipy. The buttap function uses complex numbers.
|
The |
Correct, data is then piped through one of low/high/band or bandstop filter. |
@wired8 I think I can relatively easily fix the complex code, but if you want to use it, we have to implement the filter functions in question. In order to not invest effort, where it is not needed, could you, please, point out which are the most important functions that you would need. Preferably, in order of importance. EDIT: could you, please, open a new ticket for each function, with a link to the |
Closing this now, on-going work is in #456 |
This PR adds rudimentary complex support to
ulab
. Detailed discussion can be found in #364.At the moment, complex arrays can be initialised from complex iterables. E.g.,
behaves as expected. In addition, the PR also implements the
real
and imaginary functions forndarray
s, i.e., the following works: