On Tue, Jul 23, 2013 at 10:11 AM, Stéfan van der Walt <[email protected]>wrote:
> On Tue, Jul 23, 2013 at 3:39 PM, Alan G Isaac <[email protected]> > 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 [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
