Skip to content

matmul with out array is broken #85

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

Closed
ev-br opened this issue Mar 15, 2023 · 1 comment
Closed

matmul with out array is broken #85

ev-br opened this issue Mar 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ev-br
Copy link
Collaborator

ev-br commented Mar 15, 2023

consider np.matmul(a, b, out) with a.shape=(5, 2) and b.shape=(2, 2). The out array is out.shape=(5, 2), but the ufunc machinery attempts to broadcast a and b against out, which of course fails at broadcast(b, out).

So need to special-case matmul in the ufunc machinery.

@ev-br ev-br added the bug Something isn't working label Mar 16, 2023
@ev-br
Copy link
Collaborator Author

ev-br commented Mar 23, 2023

Fixed by gh-90

@ev-br ev-br closed this as completed Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant