summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-06-07 10:31:07 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-06-07 10:31:07 +0000
commitd924b3e48d93fe92ea7a308920a7544c6aa6d9ec (patch)
tree1a063fce8759f27504e614d3420c1d22865345c4 /numpy
parentca1a49c328b5882d750d7757310bba56467f3565 (diff)
downloadnumpy-d924b3e48d93fe92ea7a308920a7544c6aa6d9ec.tar.gz
Move comment for PyArray_New at the right location.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/ctors.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index 5efcd2dbf..a935715b4 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -1433,6 +1433,23 @@ PyArray_NewFromDescr(PyTypeObject *subtype, PyArray_Descr *descr, int nd,
return NULL;
}
+/*
+ * This is the main array creation routine.
+ *
+ * Flags argument has multiple related meanings
+ * depending on data and strides:
+ *
+ * If data is given, then flags is flags associated with data.
+ * If strides is not given, then a contiguous strides array will be created
+ * and the CONTIGUOUS bit will be set. If the flags argument
+ * has the FORTRAN bit set, then a FORTRAN-style strides array will be
+ * created (and of course the FORTRAN flag bit will be set).
+ *
+ * If data is not given but created here, then flags will be DEFAULT
+ * and a non-zero flags argument can be used to indicate a FORTRAN style
+ * array is desired.
+ */
+
/*NUMPY_API
* Generic new array creation routine.
*/
@@ -3225,23 +3242,6 @@ PyArray_FromIter(PyObject *obj, PyArray_Descr *dtype, intp count)
return (PyObject *)ret;
}
-/*
- * This is the main array creation routine.
- *
- * Flags argument has multiple related meanings
- * depending on data and strides:
- *
- * If data is given, then flags is flags associated with data.
- * If strides is not given, then a contiguous strides array will be created
- * and the CONTIGUOUS bit will be set. If the flags argument
- * has the FORTRAN bit set, then a FORTRAN-style strides array will be
- * created (and of course the FORTRAN flag bit will be set).
- *
- * If data is not given but created here, then flags will be DEFAULT
- * and a non-zero flags argument can be used to indicate a FORTRAN style
- * array is desired.
- */
-
NPY_NO_EXPORT size_t
_array_fill_strides(intp *strides, intp *dims, int nd, size_t itemsize,
int inflag, int *objflags)