numpy
2.0.0
|
00001 #ifndef _NPY_INTERNAL_ARRAYOBJECT_H_ 00002 #define _NPY_INTERNAL_ARRAYOBJECT_H_ 00003 00004 #ifndef _MULTIARRAYMODULE 00005 #error You should not include this 00006 #endif 00007 00008 NPY_NO_EXPORT PyObject * 00009 _strings_richcompare(PyArrayObject *self, PyArrayObject *other, int cmp_op, 00010 int rstrip); 00011 00012 NPY_NO_EXPORT PyObject * 00013 array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op); 00014 00015 NPY_NO_EXPORT int 00016 array_might_be_written(PyArrayObject *obj); 00017 00018 /* 00019 * This flag is used to mark arrays which we would like to, in the future, 00020 * turn into views. It causes a warning to be issued on the first attempt to 00021 * write to the array (but the write is allowed to succeed). 00022 * 00023 * This flag is for internal use only, and may be removed in a future release, 00024 * which is why the #define is not exposed to user code. Currently it is set 00025 * on arrays returned by ndarray.diagonal. 00026 */ 00027 static const int NPY_ARRAY_WARN_ON_WRITE = (1 << 31); 00028 00029 #endif