[Numpy-discussion] Why ndarray provides four ways to flatten?
Alan G Isaac
alan.isaac at gmail.com
Tue Oct 28 14:03:34 EDT 2014
On 10/28/2014 1:42 PM, Stephan Hoyer wrote:
> np.nditer is a reasonable alternative to .flat (and it's documented as such), but it's a rather inelegant, kitchen-sink type function.
I'm not sure what "reasonable" means here,
other than "in principle, possible to use".
In particular, `flat` is much more elegant,
and includes an automatic guarantee that the
iterations will be in C-contiguous style.
More information about the NumPy-Discussion