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

Function array_byteswap

numpy/core/src/multiarray/methods.c:574–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572
573
574static PyObject *
575array_byteswap(PyArrayObject *self, PyObject *args, PyObject *kwds)
576{
577 npy_bool inplace = NPY_FALSE;
578 static char *kwlist[] = {"inplace", NULL};
579
580 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O&:byteswap", kwlist,
581 PyArray_BoolConverter, &inplace)) {
582 return NULL;
583 }
584 return PyArray_Byteswap(self, inplace);
585}
586
587static PyObject *
588array_tolist(PyArrayObject *self, PyObject *args)

Callers

nothing calls this directly

Calls 1

PyArray_ByteswapFunction · 0.85

Tested by

no test coverage detected