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

Correctly deal with matmul and document unsupported functions #1216

Merged
merged 1 commit into from Aug 27, 2020

Conversation

mstimberg
Copy link
Member

This implements numpy's matmul function and the @ operator to correctly work with units.

As @kjohnsen mentioned in #1212, functions like numpy.linalg.norm do not work with units, but for now I decided to just mention that functions in subpackages like linalg are not supported. For many of them it would not be complicated to add support, but others will need a closer look (in the worst case, they might have options that change the units of the result).

I'd say this fixes #1212 for now.

@mstimberg mstimberg merged commit 56cbdf6 into master Aug 27, 2020
@mstimberg mstimberg deleted the fix_#1212 branch August 27, 2020 08:00
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.

Additional numpy functions that don't work as expected
2 participants