| 1169 | } |
| 1170 | |
| 1171 | static int |
| 1172 | npyiter_resetbasepointers(NewNpyArrayIterObject *self) |
| 1173 | { |
| 1174 | while (self->nested_child) { |
| 1175 | if (NpyIter_ResetBasePointers(self->nested_child->iter, |
| 1176 | self->dataptrs, NULL) != NPY_SUCCEED) { |
| 1177 | return NPY_FAIL; |
| 1178 | } |
| 1179 | self = self->nested_child; |
| 1180 | if (NpyIter_GetIterSize(self->iter) == 0) { |
| 1181 | self->started = 1; |
| 1182 | self->finished = 1; |
| 1183 | } |
| 1184 | else { |
| 1185 | self->started = 0; |
| 1186 | self->finished = 0; |
| 1187 | } |
| 1188 | } |
| 1189 | |
| 1190 | return NPY_SUCCEED; |
| 1191 | } |
| 1192 | |
| 1193 | static PyObject * |
| 1194 | npyiter_reset(NewNpyArrayIterObject *self, PyObject *NPY_UNUSED(args)) |
no test coverage detected