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

Function NpyIter_GetDataPtrArray

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

NUMPY_API * Get the array of data pointers (1 per object being iterated) * * This function may be safely called without holding the Python GIL. */

Source from the content-addressed store, hash-verified

1085 * This function may be safely called without holding the Python GIL.
1086 */
1087NPY_NO_EXPORT char **
1088NpyIter_GetDataPtrArray(NpyIter *iter)
1089{
1090 npy_uint32 itflags = NIT_ITFLAGS(iter);
1091 /*int ndim = NIT_NDIM(iter);*/
1092 int nop = NIT_NOP(iter);
1093
1094 if (itflags&NPY_ITFLAG_BUFFER) {
1095 NpyIter_BufferData *bufferdata = NIT_BUFFERDATA(iter);
1096 return NBF_PTRS(bufferdata);
1097 }
1098 else {
1099 NpyIter_AxisData *axisdata = NIT_AXISDATA(iter);
1100 return NAD_PTRS(axisdata);
1101 }
1102}
1103
1104/*NUMPY_API
1105 * Get the array of data pointers (1 per object being iterated),

Callers 15

array_datetime_as_stringFunction · 0.85
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_NonzeroFunction · 0.85
PyArray_WhereFunction · 0.85
arr_ravel_multi_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected