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

Insert minimal dimensions when broadcasting in apply_ufunc #1237

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Jan 30, 2017

Leading dimensions do not need to be inserted because broadcasting already
inserts them. Not including them is handy for some uses of apply_ufunc that
don't really want the broadcasting part. Now, they can simply list all of an
argument's dimensions as "core" to avoid any broadcasting.

This is necessary for @jcmgray's proposed use of apply_ufunc in #60 (comment)

  • passes git diff upstream/master | flake8 --diff

Leading dimensions do not need to be inserted because broadcasting already
inserts them. Not including them is handy for some uses of apply_ufunc that
don't really want the broadcasting part. Now, they can simply list all of an
argument's dimensions as "core" to avoid any broadcasting.
@shoyer shoyer merged commit 176cd4f into pydata:master Jan 31, 2017
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.

1 participant