MCPcopy Create free account
hub / github.com/numpy/numpy / sum

Method sum

numpy/core/tests/test_numeric.py:3570–3571  ·  view source on GitHub ↗
(self, axis=None, dtype=None, out=None)

Source from the content-addressed store, hash-verified

3568
3569 class sub_array(np.ndarray):
3570 def sum(self, axis=None, dtype=None, out=None):
3571 return np.ndarray.sum(self, axis, dtype, out, keepdims=True)
3572
3573 def test_raise(self):
3574 sub_class = self.sub_array

Callers 15

count_nonzeroFunction · 0.45
test_attributesMethod · 0.45
test_large_float_sumMethod · 0.45
test_iter_reductionFunction · 0.45
test_sum_stabilityMethod · 0.45
test_sumMethod · 0.45
test_sum_complexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected