(a)
return nanprod_impl
Reimplemented with parfor from numba.np.arraymath.
Reimplemented with parfor from numba.np.arraymath.
Reimplemented with parfor from numba . np . arraymath .
def np_nanprod(a):
    """
    Reimplemented with parfor from numba.np.arraymath.
    """
    if not isinstance(a, types.Array):
        return
    if isinstance(a.dtype, types.Integer):
        retty = types.intp
    else:
        retty = a.dtype
    one = retty(1)
    isnan = get_isnan(a.dtype)

    def nanprod_impl(a):
        c = one
        for i in prange(len(a)):
            v = a[i]
            if not isnan(v):
                c *= v
        return c

    return nanprod_impl
def np_nanprod ( a ) : if not isinstance ( a , types . Array ) : return if isinstance ( a . dtype , types . Integer ) : retty = types . intp else : retty = a . dtype one = retty ( 1 ) isnan = get_isnan ( a . dtype ) def nanprod_impl ( a ) : c = one for i in prange ( len ( a ) ) : v = a [ i ] if not isnan ( v ) : c *= v return c return nanprod_impl