MCPcopy Index your code
hub / github.com/numpy/numpy / time_methods_getitem

Method time_methods_getitem

benchmarks/benchmarks/bench_ufunc.py:257–262  ·  view source on GitHub ↗
(self, margs, msize)

Source from the content-addressed store, hash-verified

255 self.xl = np.random.uniform(-1, 1, 50 * 50).reshape(50, 50)
256
257 def time_methods_getitem(self, margs, msize):
258 if msize == 'small':
259 mdat = self.xs
260 elif msize == 'big':
261 mdat = self.xl
262 mdat.__getitem__(margs)
263
264
265class NDArraySetItem(Benchmark):

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.45

Tested by

no test coverage detected