On Thu, Aug 2, 2012 at 1:01 PM, Vlad Niculae <[email protected]> wrote: > Either way, is there a reason that I'm missing, why np.array([0]) should be > both C- and F-contiguous, but np.array([[0]]) can only be one of them at a > time?
Contiguous 1-d arrays are always both C and Fortran contiguous, because, well, there's no difference in 1-d. In 2-d there is a difference between C and Fortran contiguity, and for the sake of conceptual symmetry, 1x1 (or Nx1 or 1xN) are not special-cased. Ditto with ndim > 2: even if every dimension is 1 (or ndim-1 of them are), arrays can only be C- or Fortran-contiguous in terms of their flag specs. David ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
