NUMPY_API * Allocate a new iterator for one array object. */
| 538 | * Allocate a new iterator for one array object. |
| 539 | */ |
| 540 | NPY_NO_EXPORT NpyIter * |
| 541 | NpyIter_New(PyArrayObject *op, npy_uint32 flags, |
| 542 | NPY_ORDER order, NPY_CASTING casting, |
| 543 | PyArray_Descr* dtype) |
| 544 | { |
| 545 | /* Split the flags into separate global and op flags */ |
| 546 | npy_uint32 op_flags = flags & NPY_ITER_PER_OP_FLAGS; |
| 547 | flags &= NPY_ITER_GLOBAL_FLAGS; |
| 548 | |
| 549 | return NpyIter_AdvancedNew(1, &op, flags, order, casting, |
| 550 | &op_flags, &dtype, |
| 551 | -1, NULL, NULL, 0); |
| 552 | } |
| 553 | |
| 554 | /*NUMPY_API |
| 555 | * Makes a copy of the iterator |
no test coverage detected