MCPcopy Create free account
hub / github.com/numpy/numpy / NpyIter_GetWriteFlags

Function NpyIter_GetWriteFlags

numpy/core/src/multiarray/nditer_api.c:1248–1260  ·  view source on GitHub ↗

NUMPY_API * Gets an array of write flags (1 per object being iterated) */

Source from the content-addressed store, hash-verified

1246 * Gets an array of write flags (1 per object being iterated)
1247 */
1248NPY_NO_EXPORT void
1249NpyIter_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

Callers 1

npyiter_cache_valuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected