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

Method time_3d

benchmarks/benchmarks/bench_shape_base.py:129–133  ·  view source on GitHub ↗
(self, n, mode)

Source from the content-addressed store, hash-verified

127 for a in one_d]
128
129 def time_3d(self, n, mode):
130 if mode == 'block':
131 np.block(self.block)
132 else: # mode == 'copy'
133 [arr.copy() for arr in self.arr_list]
134
135 # Retain old benchmark name for backward compat
136 time_3d.benchmark_name = "bench_shape_base.Block.time_3d"

Callers

nothing calls this directly

Calls 2

blockMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected