[Numpy-discussion] feedback request: proposal to add masks to the core ndarray

Nathaniel Smith njs@pobox....
Fri Jun 24 16:24:11 CDT 2011


On Fri, Jun 24, 2011 at 12:26 PM, Mark Wiebe <mwwiebe@gmail.com> wrote:
> For the maybe dtype, it would need to gain access to the ufunc loop of the
> underlying dtype, and call it appropriately during the inner loop. This
> appears to require some more invasive upheaval within the ufunc code than
> the masking approach.

Not really -- it can just set up some shim ndarray structures, and
then use the standard top-level ufunc entry-point. (Well, this does
assume that ufunc machinery is re-entrant. If it uses global variables
or something to hold per-call state then we might be in trouble.)

-- Nathaniel


More information about the NumPy-Discussion mailing list