On Tue, Jul 23, 2013 at 10:11 AM, Stéfan van der Walt <ste...@sun.ac.za>wrote:

> On Tue, Jul 23, 2013 at 3:39 PM, Alan G Isaac <alan.is...@gmail.com>
> wrote:
> > On 7/23/2013 9:09 AM, Pauli Virtanen wrote:
> >> .flat which I think
> >> is rarely used
> >
>

Don't assume .flat is not commonly used.  A common idiom in matlab is
"a[:]" to flatten an array. When porting code over from matlab, it is
typical to replace that with either "a.flat" or "a.flatten()", depending on
whether an iterator or an array is needed.

Cheers!
Ben Root
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to