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

Use a faster version of np.min() and np.max() #525

Merged
merged 1 commit into from
Sep 16, 2015

Conversation

aymkhalil
Copy link
Contributor

As per NumPy docs, np.minimum(a[0], a[0]) gives better performance than np.min(a, axis=0) if a.shape[0] = 2:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.amin.html#numpy.amin

@mandli
Copy link
Member

mandli commented Sep 15, 2015

I would merge this in but does anyone know why coveralls is not finishing?

@aymkhalil
Copy link
Contributor Author

Coveralls took so long to finish for some reason, now it is done

ketch added a commit that referenced this pull request Sep 16, 2015
Use a faster version of np.min() and np.max()
@ketch ketch merged commit 4e014b3 into clawpack:master Sep 16, 2015
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.

3 participants