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. */
| 1419 | * This function may be safely called without holding the Python GIL. |
| 1420 | */ |
| 1421 | NPY_NO_EXPORT npy_intp * |
| 1422 | NpyIter_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 |
no outgoing calls
no test coverage detected