| 336 | } |
| 337 | |
| 338 | array::ArrayIterator::ArrayIterator(const array& arr, int idx) |
| 339 | : arr(arr), idx(idx) { |
| 340 | if (arr.ndim() == 0) { |
| 341 | throw std::invalid_argument("Cannot iterate over 0-d array."); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | array::ArrayIterator::reference array::ArrayIterator::operator*() const { |
| 346 | auto start = Shape(arr.ndim(), 0); |
nothing calls this directly
no outgoing calls
no test coverage detected