@@ -1546,7 +1546,7 @@ Flag checking
1546
1546
For all of these macros *arr* must be an instance of a (subclass of)
1547
1547
:c:data:`PyArray_Type`.
1548
1548
1549
- .. c:function:: int PyArray_CHKFLAGS(PyObject *arr, int flags)
1549
+ .. c:function:: int PyArray_CHKFLAGS(const PyArrayObject *arr, int flags)
1550
1550
1551
1551
The first parameter, arr, must be an ndarray or subclass. The
1552
1552
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)
1555
1555
:c:data: `NPY_ARRAY_OWNDATA `, :c:data: `NPY_ARRAY_ALIGNED `,
1556
1556
:c:data: `NPY_ARRAY_WRITEABLE `, :c:data: `NPY_ARRAY_WRITEBACKIFCOPY `.
1557
1557
1558
- .. c :function :: int PyArray_IS_C_CONTIGUOUS (PyObject *arr)
1558
+ .. c :function :: int PyArray_IS_C_CONTIGUOUS (const PyArrayObject *arr)
1559
1559
1560
1560
Evaluates true if *arr * is C-style contiguous.
1561
1561
1562
- .. c :function :: int PyArray_IS_F_CONTIGUOUS (PyObject *arr)
1562
+ .. c :function :: int PyArray_IS_F_CONTIGUOUS (const PyArrayObject *arr)
1563
1563
1564
1564
Evaluates true if *arr * is Fortran-style contiguous.
1565
1565
1566
- .. c :function :: int PyArray_ISFORTRAN (PyObject *arr)
1566
+ .. c :function :: int PyArray_ISFORTRAN (const PyArrayObject *arr)
1567
1567
1568
1568
Evaluates true if *arr * is Fortran-style contiguous and *not *
1569
1569
C-style contiguous. :c:func: `PyArray_IS_F_CONTIGUOUS `
1570
1570
is the correct way to test for Fortran-style contiguity.
1571
1571
1572
- .. c :function :: int PyArray_ISWRITEABLE (PyObject *arr)
1572
+ .. c :function :: int PyArray_ISWRITEABLE (const PyArrayObject *arr)
1573
1573
1574
1574
Evaluates true if the data area of *arr * can be written to
1575
1575
1576
- .. c :function :: int PyArray_ISALIGNED (PyObject *arr)
1576
+ .. c :function :: int PyArray_ISALIGNED (const PyArrayObject *arr)
1577
1577
1578
1578
Evaluates true if the data area of *arr * is properly aligned on
1579
1579
the machine.
1580
1580
1581
- .. c :function :: int PyArray_ISBEHAVED (PyObject *arr)
1581
+ .. c :function :: int PyArray_ISBEHAVED (const PyArrayObject *arr)
1582
1582
1583
1583
Evaluates true if the data area of *arr * is aligned and writeable
1584
1584
and in machine byte-order according to its descriptor.
1585
1585
1586
- .. c :function :: int PyArray_ISBEHAVED_RO (PyObject *arr)
1586
+ .. c :function :: int PyArray_ISBEHAVED_RO (const PyArrayObject *arr)
1587
1587
1588
1588
Evaluates true if the data area of *arr * is aligned and in machine
1589
1589
byte-order.
1590
1590
1591
- .. c :function :: int PyArray_ISCARRAY (PyObject *arr)
1591
+ .. c :function :: int PyArray_ISCARRAY (const PyArrayObject *arr)
1592
1592
1593
1593
Evaluates true if the data area of *arr * is C-style contiguous,
1594
1594
and :c:func: `PyArray_ISBEHAVED ` (*arr *) is true.
1595
1595
1596
- .. c:function:: int PyArray_ISFARRAY(PyObject *arr)
1596
+ .. c:function:: int PyArray_ISFARRAY(const PyArrayObject *arr)
1597
1597
1598
1598
Evaluates true if the data area of *arr * is Fortran-style
1599
1599
contiguous and :c:func: `PyArray_ISBEHAVED ` (*arr *) is true.
1600
1600
1601
- .. c:function:: int PyArray_ISCARRAY_RO(PyObject *arr)
1601
+ .. c:function:: int PyArray_ISCARRAY_RO(const PyArrayObject *arr)
1602
1602
1603
1603
Evaluates true if the data area of *arr * is C-style contiguous,
1604
1604
aligned, and in machine byte-order.
1605
1605
1606
- .. c :function :: int PyArray_ISFARRAY_RO (PyObject *arr)
1606
+ .. c :function :: int PyArray_ISFARRAY_RO (const PyArrayObject *arr)
1607
1607
1608
1608
Evaluates true if the data area of *arr * is Fortran-style
1609
1609
contiguous, aligned, and in machine byte-order **. **
1610
1610
1611
- .. c :function :: int PyArray_ISONESEGMENT (PyObject *arr)
1611
+ .. c :function :: int PyArray_ISONESEGMENT (const PyArrayObject *arr)
1612
1612
1613
1613
Evaluates true if the data area of *arr * consists of a single
1614
1614
(C-style or Fortran-style) contiguous segment.
0 commit comments