8000 MAINT Avoid some memory copies in numpy.polynomial.hermite by rth · Pull Request #12073 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT Avoid some memory copies in numpy.polynomial.hermite #12073

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

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

rth
Copy link
Contributor
@rth rth commented Oct 2, 2018

This avoids a few memory copies in numpypolynomial.hermite* by using np.full instead of cst*np.ones, with hopefully some marginal run time benefits.

@mattip
Copy link
Member
mattip commented Oct 16, 2018

The line changed is not tested. Could you add a test? Since this is a change to increase performance, a benchmark in benchmarks/benchmark would be even nicer, but I don't see any benchmarking at all for polynomial.

@eric-wieser
Copy link
Member

Not sure this is worth benchmarking, but a test of these paths would be good

@charris charris merged commit 9cc9f01 into numpy:master Nov 1, 2018
@charris
Copy link
Member
charris commented Nov 1, 2018

Thanks @rth

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

Successfully merging this pull request may close these issues.

5 participants
0