Skip to content
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

[python] fix multiplication with ndarray when ndarray is rhs #2159

Closed
wants to merge 10 commits into from

Conversation

serval2412
Copy link
Contributor

instead of duplicating ndarray management for int/float (more?), just swap lhs and rhs (see bug #2102)

@CLAassistant
Copy link

CLAassistant commented Sep 16, 2024

CLA assistant check
All committers have signed the CLA.

@HugoNumworks
Copy link
Contributor

Thanks a lot for giving it a try !

We usually try not to alter micropython's code, especially mixing it with ulab because it makes updating Micropython/Ulab difficult.

I instead found a solution altering Micropython's configuration MICROPY_PY_REVERSE_SPECIAL_METHODS to 1.

It allows a fallback on generic operators from Ulab, and essentially does the same as you did but without altering their code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants