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

Function array_real_get

numpy/core/src/multiarray/getset.c:736–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734 */
735
736static PyObject *
737array_real_get(PyArrayObject *self, void *NPY_UNUSED(ignored))
738{
739 PyArrayObject *ret;
740
741 if (PyArray_ISCOMPLEX(self)) {
742 ret = _get_part(self, 0);
743 return (PyObject *)ret;
744 }
745 else {
746 Py_INCREF(self);
747 return (PyObject *)self;
748 }
749}
750
751
752static int

Callers

nothing calls this directly

Calls 1

_get_partFunction · 0.85

Tested by

no test coverage detected