[Numpy-discussion] How Can I find out if an array is Contiguous in an extension module?
Paul F. Dubois
pauldubois at home.com
Thu Sep 28 22:10:05 EDT 2000
> I was surprised to not find a "PyArray_Contiguous" function, or
> something like it.
The following macro is define in arrayobject.h:
#define PyArray_ISCONTIGUOUS(m) ((m)->flags & CONTIGUOUS)
More information about the NumPy-Discussion