NUMPY_API * Get the array of strides for the inner loop (when HasExternalLoop is true) * * This function may be safely called without holding the Python GIL. */
| 1266 | * This function may be safely called without holding the Python GIL. |
| 1267 | */ |
| 1268 | NPY_NO_EXPORT npy_intp * |
| 1269 | NpyIter_GetInnerStrideArray(NpyIter *iter) |
| 1270 | { |
| 1271 | npy_uint32 itflags = NIT_ITFLAGS(iter); |
| 1272 | /*int ndim = NIT_NDIM(iter);*/ |
| 1273 | int nop = NIT_NOP(iter); |
| 1274 | |
| 1275 | if (itflags&NPY_ITFLAG_BUFFER) { |
| 1276 | NpyIter_BufferData *data = NIT_BUFFERDATA(iter); |
| 1277 | return NBF_STRIDES(data); |
| 1278 | } |
| 1279 | else { |
| 1280 | NpyIter_AxisData *axisdata = NIT_AXISDATA(iter); |
| 1281 | return NAD_STRIDES(axisdata); |
| 1282 | } |
| 1283 | } |
| 1284 | |
| 1285 | /*NUMPY_API |
| 1286 | * Gets the array of strides for the specified axis. |
no outgoing calls
no test coverage detected