-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
add output argument to numpy.outer (Trac #769) #1367
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
Comments
Milestone changed to |
Milestone changed to |
Milestone changed to |
@GaelVaroquaux wrote on 2008-09-04 numpy.add and numpy.multiply also would need such love. I think this ticket could be converted into 'add output argument to all ufuncs'. |
@rkern wrote on 2008-09-04 add and multiply already take an output argument. It's just not a keyword. |
@mwiebe wrote on 2011-03-23 Except for not supporting object arrays, this could be replaced with a call to einsum to give it an output parameter. |
Looks like an easy fix, just replace |
@charris Did you mean this something like this? |
If you try to run your code as is, it should give you a You will need to add the |
@jaimefrio Would the tests live in Would this be better? |
@jaimefrio updated the docs and tests. Is this enough for a PR? (Or should the tests be more extensive?) |
Your changes look good to me, but you'll have to wait until a core developer finds the time to review them and (hopefully) merge them. |
It just passes through to the ufunc machinery, so should all be fine I think. Just open a pull request. |
Will do, thanks |
Original ticket http://projects.scipy.org/numpy/ticket/769 on 2008-04-30 by trac user aisaac, assigned to unknown.
An output argument for
numpy.outer
would be a nice enhancement. (Motivation: I'm usingouter
in a loop body.)The text was updated successfully, but these errors were encountered: