[Numpy-discussion] Question about flags of fancy indexed array

Albert Strasheim fullung at gmail.com
Wed May 23 08:39:41 EDT 2007


Hello all

Consider the following example:

In [43]: x = N.zeros((3,2))

In [44]: x.flags
Out[44]:
  C_CONTIGUOUS : True
  F_CONTIGUOUS : False
  OWNDATA : True
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False

In [45]: x[:,[1,0]].flags
Out[45]:
  C_CONTIGUOUS : False
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False

Is it correct that the F_CONTIGUOUS flag is set in the case of the fancy 
indexed x? I'm running NumPy 1.0.3.dev3792 here.

Cheers,

Albert 




More information about the NumPy-Discussion mailing list