[Numpy-discussion] Adding 'where' to ufunc methods?
ben.root at ou.edu
Wed Apr 1 15:25:31 EDT 2015
Another usecase would be for MaskedArrays. ma.masked_array.min() wouldn't
have to make a copy anymore (there is a github issue about that). It could
just pass its mask into the where= argument of min() and be done with it.
Problem would be generalizing situations where where= effectively results
On Wed, Apr 1, 2015 at 2:34 PM, Jaime Fernández del Río <
jaime.frio at gmail.com> wrote:
> This question on StackOverflow:
> Got me thinking that I had finally found a use for the 'where' kwarg of
> ufuncs. Unfortunately it is only provided for the ufunc itself, but not for
> any of its methods.
> Is there any fundamental reason these were not implemented back in the
> day? Any frontal opposition to having them now?
> ( O.o)
> ( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes
> de dominación mundial.
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion