NUMPY_API * Gets an array of write flags (1 per object being iterated) */
| 1246 | * Gets an array of write flags (1 per object being iterated) |
| 1247 | */ |
| 1248 | NPY_NO_EXPORT void |
| 1249 | NpyIter_GetWriteFlags(NpyIter *iter, char *outwriteflags) |
| 1250 | { |
| 1251 | /*npy_uint32 itflags = NIT_ITFLAGS(iter);*/ |
| 1252 | /*int ndim = NIT_NDIM(iter);*/ |
| 1253 | int iop, nop = NIT_NOP(iter); |
| 1254 | |
| 1255 | npyiter_opitflags *op_itflags = NIT_OPITFLAGS(iter); |
| 1256 | |
| 1257 | for (iop = 0; iop < nop; ++iop) { |
| 1258 | outwriteflags[iop] = (op_itflags[iop]&NPY_OP_ITFLAG_WRITE) != 0; |
| 1259 | } |
| 1260 | } |
| 1261 | |
| 1262 | |
| 1263 | /*NUMPY_API |
no outgoing calls
no test coverage detected