On 10/07/2018 10:32 AM, Mark Harfouche wrote:
With `np.ndrange` it can look something like this:
```
c = np.empty((4, 4), dtype=object)
# ... compute on c
for i in np.ndrange(c.shape)[:, 1:-1]:
c[i] # = some operation on c[i] that depends on the index i
```
very pythonic, very familiar to
Hi All,
I've been using numpy array objects to store collections of 2D (and soon
ND) variables. When iterating through these collections, I often found it
useful to use `ndindex`, which for `for loops` behaves much like `range`
with only a `stop` parameter.
That said, it lacks a few features that