numpy 2.0.0
src/multiarray/arrayobject.h File Reference

Go to the source code of this file.

Functions

NPY_NO_EXPORT PyObject * _strings_richcompare (PyArrayObject *self, PyArrayObject *other, int cmp_op, int rstrip)
NPY_NO_EXPORT PyObject * array_richcompare (PyArrayObject *self, PyObject *other, int cmp_op)

Function Documentation

NPY_NO_EXPORT PyObject* array_richcompare ( PyArrayObject self,
PyObject *  other,
int  cmp_op 
)

Try to convert other to an array
If not successful, indicate that the items cannot be compared this way.
If the comparison results in NULL, then the two array objects can not be compared together; indicate that
Try to convert other to an array
If not successful, then objects cannot be compared this way
Try to handle string comparisons

Referenced by _strings_richcompare().