[Numpy-discussion] Faster than ndindex?
garyfallidis at gmail.com
Sat Dec 4 14:00:43 EST 2010
I would like to know if there is any way to make the following operation
refinds = np.ndindex(shape[:3])
for ijk_t in refinds:
i,j,k = ijk_t
1 loops, best of 3: 19.5 s per loop
I am using ndindex and then a for loop. Is there a better/faster way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion