-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
/
arrayobject.h
31 lines (24 loc) · 954 Bytes
/
arrayobject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _NPY_INTERNAL_ARRAYOBJECT_H_
#define _NPY_INTERNAL_ARRAYOBJECT_H_
#ifndef _MULTIARRAYMODULE
#error You should not include this
#endif
#include "numpy/arrayobject.h"
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);
/*
* This flag is used to mark arrays which we would like to, in the future,
* turn into views. It causes a warning to be issued on the first attempt to
* write to the array (but the write is allowed to succeed).
*
* This flag is for internal use only, and may be removed in a future release,
* which is why the #define is not exposed to user code. Currently it is set
* on arrays returned by ndarray.diagonal.
*/
static const int NPY_ARRAY_WARN_ON_WRITE = (1 << 31);
#endif