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

Method setup

benchmarks/benchmarks/bench_reduce.py:21–22  ·  view source on GitHub ↗
(self, axis, typename)

Source from the content-addressed store, hash-verified

19 param_names = ['axis', 'type']
20
21 def setup(self, axis, typename):
22 self.a = get_squares()[typename]
23
24 def time_reduce(self, axis, typename):
25 np.add.reduce(self.a, axis=axis)

Callers

nothing calls this directly

Calls 1

get_squaresFunction · 0.85

Tested by

no test coverage detected