MCPcopy Create free account
hub / github.com/numpy/numpy / arraydescr_newbyteorder

Function arraydescr_newbyteorder

numpy/core/src/multiarray/descriptor.c:3265–3275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3263
3264
3265static PyObject *
3266arraydescr_newbyteorder(PyArray_Descr *self, PyObject *args)
3267{
3268 char endian=NPY_SWAP;
3269
3270 if (!PyArg_ParseTuple(args, "|O&:newbyteorder", PyArray_ByteorderConverter,
3271 &endian)) {
3272 return NULL;
3273 }
3274 return (PyObject *)PyArray_DescrNewByteorder(self, endian);
3275}
3276
3277static PyObject *
3278arraydescr_class_getitem(PyObject *cls, PyObject *args)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected