I bet it has all been said already, but to note just in case. In numpy itself we use it mostly to determine the memory order of the *output* and not for safty purpose. That is the macro of course and I think yelling people to use flags.fnc in python is better. - Sebastian
On Mon Nov 2 08:52:01 2015 GMT+0330, Sturla Molden wrote: > Charles R Harris <charlesr.har...@gmail.com> wrote: > > > 1. Return `a.flags.f_contiguous`. This differs for 1-D arrays, but is > > most consistent with the name isfortran. > > If the idea is to determine if an array can safely be passed to Fortran, > this is the correct one. > > > 2. Return `a.flags.f_contiguous and a.ndim > 1`, which would be backward > > compatible. > > This one is just wrong. > > A compromize might be to raise an exception in the case of a.ndim<2. > > Sturla > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > https://mail.scipy.org/mailman/listinfo/numpy-discussion > > _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion