Re: [Numpy-discussion] newaxis and contiguity

2008-10-31 Thread Charles R Harris
On Fri, Oct 31, 2008 at 12:51 AM, David Cournapeau < [EMAIL PROTECTED]> wrote: > Hi, > >I was wondering about the following behavior: > > a = np.random.randn(10) > b = a[:. np.newaxis] > print b.flags # F_CONTIGUOUS and C_CONTIGUOUS are both false > > Is it for simplicity purpose, or is there

[Numpy-discussion] newaxis and contiguity

2008-10-31 Thread David Cournapeau
Hi, I was wondering about the following behavior: a = np.random.randn(10) b = a[:. np.newaxis] print b.flags # F_CONTIGUOUS and C_CONTIGUOUS are both false Is it for simplicity purpose, or is there a more fundamental reason why a rank 2, 'column' vector can't be F_CONTIGUOUS in this case ? D