numpy
2.0.0
|
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) |
NPY_NO_EXPORT int | array_might_be_written (PyArrayObject *obj) |
Variables | |
static const int | NPY_ARRAY_WARN_ON_WRITE = (1 << 31) |
NPY_NO_EXPORT PyObject* _strings_richcompare | ( | PyArrayObject * | self, |
PyArrayObject * | other, | ||
int | cmp_op, | ||
int | rstrip | ||
) |
<
References dimensions, PyArray_Dims::len, NPY_ANYORDER, NPY_BOOL, NPY_MAXDIMS, PyArray_Dims::ptr, PyArray_DIMS, PyArray_GenericReduceFunction(), PyArray_NDIM, and PyArray_Newshape().
NPY_NO_EXPORT int array_might_be_written | ( | PyArrayObject * | obj | ) |
NPY_NO_EXPORT PyObject* array_richcompare | ( | PyArrayObject * | self, |
PyObject * | other, | ||
int | cmp_op | ||
) |
<blockquote> l = ["a", "b"] assert np.array(l, dtype="S1") == np.array(l, dtype="O")</blockquote>
const int NPY_ARRAY_WARN_ON_WRITE = (1 << 31) [static] |
Referenced by PyArray_SetStringFunction().