Software Engineering discussion
Beautiful Code
>
Multidimensional Iterators in NumPy
date
newest »
newest »
Seems very similar to C++, C#, and database iterators. I wasn't aware that iterators was a formal pattern but that makes perfect sense.I don't know anything about NumPy, so I didn't understand why this is special. I think I've only used two dimension table iterators, so thinking about a 3-D table and iterators was new for me.


This is one of the first examples I have seen that shows off the true power that an Iterator pattern can offer.