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

Method accumulate

numpy/ma/core.py:1112–1121  ·  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

1110 return masked_d
1111
1112 def accumulate(self, target, axis=0):
1113 """Accumulate `target` along `axis` after filling with y fill
1114 value.
1115
1116 """
1117 tclass = get_masked_subclass(target)
1118 t = filled(target, self.filly)
1119 result = self.f.accumulate(t, axis)
1120 masked_result = result.view(tclass)
1121 return masked_result
1122
1123
1124

Calls 3

get_masked_subclassFunction · 0.85
filledFunction · 0.85
viewMethod · 0.45