NUMPY_API * Get the array of data pointers (1 per object being iterated) * * This function may be safely called without holding the Python GIL. */
| 1085 | * This function may be safely called without holding the Python GIL. |
| 1086 | */ |
| 1087 | NPY_NO_EXPORT char ** |
| 1088 | NpyIter_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), |
no outgoing calls
no test coverage detected