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

Method setup

benchmarks/benchmarks/bench_creation.py:35–37  ·  view source on GitHub ↗
(self, shape, order, npdtypes)

Source from the content-addressed store, hash-verified

33 timeout = 10
34
35 def setup(self, shape, order, npdtypes):
36 values = get_squares_()
37 self.xarg = values.get(npdtypes)[0]
38
39 def time_full(self, shape, order, npdtypes):
40 np.full(shape, self.xarg[1], dtype=npdtypes, order=order)

Callers

nothing calls this directly

Calls 2

get_squares_Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected