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

Method setup

benchmarks/benchmarks/bench_ufunc.py:249–253  ·  view source on GitHub ↗
(self, typeconv)

Source from the content-addressed store, hash-verified

247 timeout = 10
248
249 def setup(self, typeconv):
250 if typeconv[0] == typeconv[1]:
251 raise NotImplementedError(
252 "Skipping test for converting to the same dtype")
253 self.xarg = get_squares_().get(typeconv[0])
254
255 def time_astype(self, typeconv):
256 self.xarg.astype(typeconv[1])

Callers

nothing calls this directly

Calls 2

get_squares_Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected