diff options
-rw-r--r-- | numpy/core/src/arrayobject.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 30efc95cf..e440eaf7f 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -4560,6 +4560,8 @@ PyArray_IntpFromSequence(PyObject *seq, intp *vals, int maxvals) /* Check whether the given array is stored contiguously (row-wise) in memory. */ + +/* 0-strided arrays are not contiguous (even if dimension == 1) */ static int _IsContiguous(PyArrayObject *ap) { @@ -4582,6 +4584,7 @@ _IsContiguous(PyArrayObject *ap) } +/* 0-strided arrays are not contiguous (even if dimension == 1) */ static int _IsFortranContiguous(PyArrayObject *ap) { |