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

Refactor _broadcast_uv #29

Merged
merged 4 commits into from
Sep 27, 2017
Merged

Refactor _broadcast_uv #29

merged 4 commits into from
Sep 27, 2017

Conversation

jakirkham
Copy link
Owner

Creates a function to handle broadcasting of u and v so as to facilitate simpler computation with the two arrays. Use this function in _bool_cmp_cnts. Also add some basic tests for _broadcast_uv.

Creates a function to handle broadcasting of `u` and `v` so as to
facilitate simpler computation with the two arrays.
Simplify `_bool_cmp_cnts` a bit by making use of `_broadcast_uv`. This
takes over some of the prep that `_bool_cmp_cnts` does.
Make sure that `_broadcast_uv` raises when arrays that are N-D with N>2
are provided as arguments.
Make sure that `_broadcast_uv` is behaving reasonably in the broadest
sense. Namely ensuring that the shape and type of the two arrays are as
expected.
@jakirkham jakirkham merged commit c041973 into master Sep 27, 2017
@jakirkham jakirkham deleted the ref_broadcast_uv branch September 27, 2017 05:16
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