MCPcopy Index your code
hub / github.com/numpy/numpy / sum

Method sum

numpy/_core/tests/test_numeric.py:4212–4213  ·  view source on GitHub ↗
(self, axis=None, dtype=None, out=None)

Source from the content-addressed store, hash-verified

4210
4211 class sub_array(np.ndarray):
4212 def sum(self, axis=None, dtype=None, out=None):
4213 return np.ndarray.sum(self, axis, dtype, out, keepdims=True)
4214
4215 def test_raise(self):
4216 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_limited_opaqueFunction · 0.45
test_sum_stabilityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected