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

Function NpyIter_IterationNeedsAPI

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

NUMPY_API * Whether the iteration loop, and in particular the iternext() * function, needs API access. If this is true, the GIL must * be retained while iterating. * * NOTE: Internally (currently), `NpyIter_GetTransferFlags` will * additionally provide information on whether floating point errors * may be given during casts. The flags only require the API use * necessar

Source from the content-addressed store, hash-verified

867 * the flag in `NpyIter_GetTransferFlags`.
868 */
869NPY_NO_EXPORT npy_bool
870NpyIter_IterationNeedsAPI(NpyIter *iter)
871{
872 return (NIT_ITFLAGS(iter)&NPY_ITFLAG_NEEDSAPI) != 0;
873}
874
875
876/*

Callers 10

PyArray_CopyAsFlatFunction · 0.85
PyArray_CountNonzeroFunction · 0.85
PyArray_NonzeroFunction · 0.85
PyArray_MapIterNewFunction · 0.85
PyUFunc_ReduceWrapperFunction · 0.85
PyUFunc_AccumulateFunction · 0.85
PyUFunc_ReduceatFunction · 0.85
ufunc_at__slow_iterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected