[Numpy-discussion] Numpy where
njs at pobox.com
Fri Mar 13 15:26:21 EDT 2015
On Thu, Mar 12, 2015 at 9:35 PM, Benjamin Root <ben.root at ou.edu> wrote:
> I think the question is if scalars should be acceptable for the first
> argument, not if it should be for the 2nd and 3rd argument.
> If scalar can be given for the first argument, the the first three makes
> sense. Although, I have no clue why we would allow that.
Why wouldn't we? The where function takes three arguments which are
broadcast against each other, so disallowing scalars would require
adding a special case.
Nathaniel J. Smith -- http://vorpus.org
More information about the NumPy-Discussion