NumPy Iterator
In this tutorial you will learn:
- Iterating Arrays using nditer
- DataType Casting
- Iterating with Step Sizing
Iterating Arrays using nditer()
nditer is an iterator object that was first introduced in NumPy 1.6. For a multi dimensional array it becomes a cumbersome task to write a For loop for each dimension, so nditer provides a flexibility to efficiently and systematically iterate a complete n-dimensiona array.