Skip to content

np.where not documented to broadcast its inputs #7914

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

Closed
anntzer opened this issue Aug 6, 2016 · 2 comments
Closed

np.where not documented to broadcast its inputs #7914

anntzer opened this issue Aug 6, 2016 · 2 comments

Comments

@anntzer
Copy link
Contributor

anntzer commented Aug 6, 2016

The docs for where state

    condition : array_like, bool
        When True, yield `x`, otherwise yield `y`.
    x, y : array_like, optional
        Values from which to choose. `x` and `y` need to have the same
        shape as `condition`.

Actually a quick test shows that at least 0-d x/y inputs are broadcasted accordingly.

@eric-wieser
Copy link
Member

Related: #8599

@eric-wieser
Copy link
Member

Fixed in aa746c6

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

No branches or pull requests

3 participants