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

Function NpyIter_GetInitialDataPtrArray

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

NUMPY_API * Get the array of data pointers (1 per object being iterated), * directly into the arrays (never pointing to a buffer), for starting * unbuffered iteration. This always returns the addresses for the * iterator position as reset to iterator index 0. * * These pointers are different from the pointers accepted by * NpyIter_ResetBasePointers, because the direction along some * axes

Source from the content-addressed store, hash-verified

1114 * This function may be safely called without holding the Python GIL.
1115 */
1116NPY_NO_EXPORT char **
1117NpyIter_GetInitialDataPtrArray(NpyIter *iter)
1118{
1119 /*npy_uint32 itflags = NIT_ITFLAGS(iter);*/
1120 /*int ndim = NIT_NDIM(iter);*/
1121 int nop = NIT_NOP(iter);
1122
1123 return NIT_RESETDATAPTR(iter);
1124}
1125
1126/*NUMPY_API
1127 * Get the array of data type pointers (1 per object being iterated)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected