NUMPY_API * Gets an array of read flags (1 per object being iterated) */
| 1229 | * Gets an array of read flags (1 per object being iterated) |
| 1230 | */ |
| 1231 | NPY_NO_EXPORT void |
| 1232 | NpyIter_GetReadFlags(NpyIter *iter, char *outreadflags) |
| 1233 | { |
| 1234 | /*npy_uint32 itflags = NIT_ITFLAGS(iter);*/ |
| 1235 | /*int ndim = NIT_NDIM(iter);*/ |
| 1236 | int iop, nop = NIT_NOP(iter); |
| 1237 | |
| 1238 | npyiter_opitflags *op_itflags = NIT_OPITFLAGS(iter); |
| 1239 | |
| 1240 | for (iop = 0; iop < nop; ++iop) { |
| 1241 | outreadflags[iop] = (op_itflags[iop]&NPY_OP_ITFLAG_READ) != 0; |
| 1242 | } |
| 1243 | } |
| 1244 | |
| 1245 | /*NUMPY_API |
| 1246 | * Gets an array of write flags (1 per object being iterated) |
no outgoing calls
no test coverage detected