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

Method accumulate

numpy/ma/core.py:1163–1172  ·  view source on GitHub ↗

Accumulate `target` along `axis` after filling with y fill value.

(self, target, axis=0)

Source from the content-addressed store, hash-verified

1161 return masked_d
1162
1163 def accumulate(self, target, axis=0):
1164 """Accumulate `target` along `axis` after filling with y fill
1165 value.
1166
1167 """
1168 tclass = get_masked_subclass(target)
1169 t = filled(target, self.filly)
1170 result = self.f.accumulate(t, axis)
1171 masked_result = result.view(tclass)
1172 return masked_result
1173
1174
1175class _DomainedBinaryOperation(_MaskedUFunc):

Calls 3

get_masked_subclassFunction · 0.85
filledFunction · 0.85
viewMethod · 0.45