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

Function NpyIter_GetInnerStrideArray

numpy/core/src/multiarray/nditer_api.c:1268–1283  ·  view source on GitHub ↗

NUMPY_API * Get the array of strides for the inner loop (when HasExternalLoop is true) * * This function may be safely called without holding the Python GIL. */

Source from the content-addressed store, hash-verified

1266 * This function may be safely called without holding the Python GIL.
1267 */
1268NPY_NO_EXPORT npy_intp *
1269NpyIter_GetInnerStrideArray(NpyIter *iter)
1270{
1271 npy_uint32 itflags = NIT_ITFLAGS(iter);
1272 /*int ndim = NIT_NDIM(iter);*/
1273 int nop = NIT_NOP(iter);
1274
1275 if (itflags&NPY_ITFLAG_BUFFER) {
1276 NpyIter_BufferData *data = NIT_BUFFERDATA(iter);
1277 return NBF_STRIDES(data);
1278 }
1279 else {
1280 NpyIter_AxisData *axisdata = NIT_AXISDATA(iter);
1281 return NAD_STRIDES(axisdata);
1282 }
1283}
1284
1285/*NUMPY_API
1286 * Gets the array of strides for the specified axis.

Callers 15

business_day_offsetFunction · 0.85
business_day_countFunction · 0.85
is_business_dayFunction · 0.85
array_deepcopyFunction · 0.85
PyArray_CopyAsFlatFunction · 0.85
npyiter_cache_valuesFunction · 0.85
PyArray_CountNonzeroFunction · 0.85
PyArray_WhereFunction · 0.85
arr_ravel_multi_indexFunction · 0.85
arr_unravel_indexFunction · 0.85
array_boolean_subscriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected