NUMPY_API * Whether the iteration loop, and in particular the iternext() * function, needs API access. If this is true, the GIL must * be retained while iterating. * * NOTE: Internally (currently), `NpyIter_GetTransferFlags` will * additionally provide information on whether floating point errors * may be given during casts. The flags only require the API use * necessar
| 867 | * the flag in `NpyIter_GetTransferFlags`. |
| 868 | */ |
| 869 | NPY_NO_EXPORT npy_bool |
| 870 | NpyIter_IterationNeedsAPI(NpyIter *iter) |
| 871 | { |
| 872 | return (NIT_ITFLAGS(iter)&NPY_ITFLAG_NEEDSAPI) != 0; |
| 873 | } |
| 874 | |
| 875 | |
| 876 | /* |
no outgoing calls
no test coverage detected