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

Function NpyIter_GetInnerLoopSizePtr

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

NUMPY_API * Get a pointer to the size of 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

1419 * This function may be safely called without holding the Python GIL.
1420 */
1421NPY_NO_EXPORT npy_intp *
1422NpyIter_GetInnerLoopSizePtr(NpyIter *iter)
1423{
1424 npy_uint32 itflags = NIT_ITFLAGS(iter);
1425 /*int ndim = NIT_NDIM(iter);*/
1426 int nop = NIT_NOP(iter);
1427
1428 if (itflags&NPY_ITFLAG_BUFFER) {
1429 NpyIter_BufferData *data = NIT_BUFFERDATA(iter);
1430 return &NBF_SIZE(data);
1431 }
1432 else {
1433 NpyIter_AxisData *axisdata = NIT_AXISDATA(iter);
1434 return &NAD_SHAPE(axisdata);
1435 }
1436}
1437
1438
1439/*NUMPY_API

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