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

Method setup

benchmarks/benchmarks/bench_creation.py:73–78  ·  view source on GitHub ↗
(self, shape, npdtypes)

Source from the content-addressed store, hash-verified

71 timeout = 10
72
73 def setup(self, shape, npdtypes):
74 if npdtypes in ['longdouble', 'clongdouble']:
75 raise NotImplementedError(
76 'Only IEEE dtypes are supported')
77 values = get_squares_()
78 self.xarg = values.get(npdtypes)[0]
79
80 def time_from_dlpack(self, shape, npdtypes):
81 np.from_dlpack(self.xarg)

Callers

nothing calls this directly

Calls 2

get_squares_Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected