summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-08 09:36:50 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-08 09:36:50 +0000
commit23c7be589e17be1fa90850347ec801137bff275e (patch)
tree0366bc3ab9f340009fe36046137642050f6b4ce7 /numpy/core/src/arrayobject.c
parent16013d99a464dbad3dd016ed0e1473bb7c6c9e09 (diff)
downloadnumpy-23c7be589e17be1fa90850347ec801137bff275e.tar.gz
Comment changes.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c3
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)
{