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

Function get_params

numpy/core/tests/test_nditer.py:2319–2329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2317 op_dtypes = [float, a.dtype]
2318
2319 def get_params():
2320 for xs in range(-3**2, 3**2 + 1):
2321 for ys in range(xs, 3**2 + 1):
2322 for op_axes in op_axes_list:
2323 # last stride is reduced and because of that not
2324 # important for this test, as it is the inner stride.
2325 strides = (xs * a.itemsize, ys * a.itemsize, a.itemsize)
2326 arr = np.lib.stride_tricks.as_strided(a, (3, 3, 3), strides)
2327
2328 for skip in [0, 1]:
2329 yield arr, op_axes, skip
2330
2331 for arr, op_axes, skip in get_params():
2332 nditer2 = np.nditer([arr.copy(), None],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected