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

Method setup

benchmarks/benchmarks/bench_ufunc.py:111–113  ·  view source on GitHub ↗
(self, methname, npdtypes)

Source from the content-addressed store, hash-verified

109 timeout = 10
110
111 def setup(self, methname, npdtypes):
112 values = get_squares_()
113 self.xarg = values.get(npdtypes)[0]
114
115 def time_ndarray_meth(self, methname, npdtypes):
116 getattr(operator, methname)(self.xarg)

Callers

nothing calls this directly

Calls 2

get_squares_Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected