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

Missing __matmul__ @ operator. #859

Closed
agoose77 opened this issue Aug 30, 2019 · 1 comment
Closed

Missing __matmul__ @ operator. #859

agoose77 opened this issue Aug 30, 2019 · 1 comment

Comments

@agoose77
Copy link
Contributor

I'm not too sure on how pint works, but I imagine we can directly delegate to np.matmul(self, other)?

@agoose77 agoose77 changed the title Missing matmul operator. Missing __matmul__ @ operator. Aug 30, 2019
jthielen added a commit to jthielen/pint that referenced this issue Aug 30, 2019
Adds support for __matmul__ and __rmatmul__ (@) operator, by way of
numpy matmul ufunc.

Closes hgrecco#859
jthielen added a commit to jthielen/pint that referenced this issue Aug 30, 2019
Adds support for __matmul__ and __rmatmul__ (@) operator, by way of
numpy matmul ufunc.

Closes hgrecco#859
jthielen added a commit to jthielen/pint that referenced this issue Aug 30, 2019
Adds support for __matmul__ and __rmatmul__ (@) operator, by way of
numpy matmul ufunc (only supported in Python >= 3.5).

Closes hgrecco#859
jthielen added a commit to jthielen/pint that referenced this issue Aug 30, 2019
Adds support for __matmul__ and __rmatmul__ (@) operator, by way of
numpy matmul ufunc (only supported in Python >= 3.5).

Closes hgrecco#859
jthielen added a commit to jthielen/pint that referenced this issue Aug 30, 2019
Adds support for __matmul__ and __rmatmul__ (@) operator, by way of
numpy matmul ufunc (only supported in Python >= 3.5).

Closes hgrecco#859
jthielen added a commit to jthielen/pint that referenced this issue Aug 31, 2019
Adds support for __matmul__ and __rmatmul__ (@) operator, by way of
numpy matmul ufunc (only supported in Python >= 3.5). Includes
workaround for np.matmul returning units in numpy > 1.15 and not in
numpy <= 1.15.

Closes hgrecco#859
@jthielen
Copy link
Contributor

Oops, I forgot to list this as closed by #905.

@hgrecco hgrecco closed this as completed Dec 11, 2019
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 a pull request may close this issue.

3 participants