| 2795 | |
| 2796 | |
| 2797 | static PyObject * |
| 2798 | array_newbyteorder(PyArrayObject *self, PyObject *args) |
| 2799 | { |
| 2800 | char endian = NPY_SWAP; |
| 2801 | PyArray_Descr *new; |
| 2802 | |
| 2803 | if (!PyArg_ParseTuple(args, "|O&:newbyteorder", PyArray_ByteorderConverter, |
| 2804 | &endian)) { |
| 2805 | return NULL; |
| 2806 | } |
| 2807 | new = PyArray_DescrNewByteorder(PyArray_DESCR(self), endian); |
| 2808 | if (!new) { |
| 2809 | return NULL; |
| 2810 | } |
| 2811 | return PyArray_View(self, new, NULL); |
| 2812 | |
| 2813 | } |
| 2814 | |
| 2815 | static PyObject * |
| 2816 | array_complex(PyArrayObject *self, PyObject *NPY_UNUSED(args)) |
nothing calls this directly
no test coverage detected