(self)
Intel Scalable Dataframe Compiler Developer Guide
    *************************************************
    Parallel replacement of numpy.sum.
    .. only:: developer
       Test: python -m sdc.runtests sdc.tests.test_sdc_numpy -k sum
Intel Scalable Dataframe Compiler Developer Guide
    *************************************************
    Parallel replacement of numpy.sum.
    .. only:: developer
       Test: python -m sdc.runtests sdc.tests.test_sdc_numpy -k sum
Intel Scalable Dataframe Compiler Developer Guide ************************************************* Parallel replacement of numpy . sum . .. only :: developer Test : python - m sdc . runtests sdc . tests . test_sdc_numpy - k sum
def sdc_sum_overload(self):
    """
    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************
    Parallel replacement of numpy.sum.
    .. only:: developer
       Test: python -m sdc.runtests sdc.tests.test_sdc_numpy -k sum
    """

    dtype = self.dtype
    isnan = get_isnan(dtype)
    if not isinstance(self, types.Array):
        return None

    if isinstance(dtype, types.Number):
        def sdc_sum_number_impl(self):
            length = len(self)
            result = 0
            for i in prange(length):
                if not isnan(self[i]):
                    result += self[i]
                else:
                    return numpy.nan

            return result

        return sdc_sum_number_impl

    if isinstance(dtype, (types.Boolean, bool)):
        return gen_sum_bool_impl()
def sdc_sum_overload ( self ) : dtype = self . dtype isnan = get_isnan ( dtype ) if not isinstance ( self , types . Array ) : return None if isinstance ( dtype , types . Number ) : def sdc_sum_number_impl ( self ) : length = len ( self ) result = 0 for i in prange ( length ) : if not isnan ( self [ i ] ) : result += self [ i ] else : return numpy . nan return result return sdc_sum_number_impl if isinstance ( dtype , ( types . Boolean , bool ) ) : return gen_sum_bool_impl ( )