Skip to content

Commit deb2144

Browse files
authored
Merge pull request numpy#28437 from danielhrisca/fix_28434
DOC: fix documentation for Flag checking functions and macros
2 parents b37750b + a1e8dde commit deb2144

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/source/reference/c-api/array.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ Flag checking
15461546
For all of these macros *arr* must be an instance of a (subclass of)
15471547
:c:data:`PyArray_Type`.
15481548
1549-
.. c:function:: int PyArray_CHKFLAGS(PyObject *arr, int flags)
1549+
.. c:function:: int PyArray_CHKFLAGS(const PyArrayObject *arr, int flags)
15501550
15511551
The first parameter, arr, must be an ndarray or subclass. The
15521552
parameter, *flags*, should be an integer consisting of bitwise
@@ -1555,60 +1555,60 @@ For all of these macros *arr* must be an instance of a (subclass of)
15551555
:c:data:`NPY_ARRAY_OWNDATA`, :c:data:`NPY_ARRAY_ALIGNED`,
15561556
:c:data:`NPY_ARRAY_WRITEABLE`, :c:data:`NPY_ARRAY_WRITEBACKIFCOPY`.
15571557
1558-
.. c:function:: int PyArray_IS_C_CONTIGUOUS(PyObject *arr)
1558+
.. c:function:: int PyArray_IS_C_CONTIGUOUS(const PyArrayObject *arr)
15591559
15601560
Evaluates true if *arr* is C-style contiguous.
15611561
1562-
.. c:function:: int PyArray_IS_F_CONTIGUOUS(PyObject *arr)
1562+
.. c:function:: int PyArray_IS_F_CONTIGUOUS(const PyArrayObject *arr)
15631563
15641564
Evaluates true if *arr* is Fortran-style contiguous.
15651565
1566-
.. c:function:: int PyArray_ISFORTRAN(PyObject *arr)
1566+
.. c:function:: int PyArray_ISFORTRAN(const PyArrayObject *arr)
15671567
15681568
Evaluates true if *arr* is Fortran-style contiguous and *not*
15691569
C-style contiguous. :c:func:`PyArray_IS_F_CONTIGUOUS`
15701570
is the correct way to test for Fortran-style contiguity.
15711571
1572-
.. c:function:: int PyArray_ISWRITEABLE(PyObject *arr)
1572+
.. c:function:: int PyArray_ISWRITEABLE(const PyArrayObject *arr)
15731573
15741574
Evaluates true if the data area of *arr* can be written to
15751575
1576-
.. c:function:: int PyArray_ISALIGNED(PyObject *arr)
1576+
.. c:function:: int PyArray_ISALIGNED(const PyArrayObject *arr)
15771577
15781578
Evaluates true if the data area of *arr* is properly aligned on
15791579
the machine.
15801580
1581-
.. c:function:: int PyArray_ISBEHAVED(PyObject *arr)
1581+
.. c:function:: int PyArray_ISBEHAVED(const PyArrayObject *arr)
15821582
15831583
Evaluates true if the data area of *arr* is aligned and writeable
15841584
and in machine byte-order according to its descriptor.
15851585
1586-
.. c:function:: int PyArray_ISBEHAVED_RO(PyObject *arr)
1586+
.. c:function:: int PyArray_ISBEHAVED_RO(const PyArrayObject *arr)
15871587
15881588
Evaluates true if the data area of *arr* is aligned and in machine
15891589
byte-order.
15901590
1591-
.. c:function:: int PyArray_ISCARRAY(PyObject *arr)
1591+
.. c:function:: int PyArray_ISCARRAY(const PyArrayObject *arr)
15921592
15931593
Evaluates true if the data area of *arr* is C-style contiguous,
15941594
and :c:func:`PyArray_ISBEHAVED` (*arr*) is true.
15951595
1596-
.. c:function:: int PyArray_ISFARRAY(PyObject *arr)
1596+
.. c:function:: int PyArray_ISFARRAY(const PyArrayObject *arr)
15971597
15981598
Evaluates true if the data area of *arr* is Fortran-style
15991599
contiguous and :c:func:`PyArray_ISBEHAVED` (*arr*) is true.
16001600
1601-
.. c:function:: int PyArray_ISCARRAY_RO(PyObject *arr)
1601+
.. c:function:: int PyArray_ISCARRAY_RO(const PyArrayObject *arr)
16021602
16031603
Evaluates true if the data area of *arr* is C-style contiguous,
16041604
aligned, and in machine byte-order.
16051605
1606-
.. c:function:: int PyArray_ISFARRAY_RO(PyObject *arr)
1606+
.. c:function:: int PyArray_ISFARRAY_RO(const PyArrayObject *arr)
16071607
16081608
Evaluates true if the data area of *arr* is Fortran-style
16091609
contiguous, aligned, and in machine byte-order **.**
16101610
1611-
.. c:function:: int PyArray_ISONESEGMENT(PyObject *arr)
1611+
.. c:function:: int PyArray_ISONESEGMENT(const PyArrayObject *arr)
16121612
16131613
Evaluates true if the data area of *arr* consists of a single
16141614
(C-style or Fortran-style) contiguous segment.

0 commit comments

Comments
 (0)