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

Function arraydescr_subdescr_get

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

Source from the content-addressed store, hash-verified

2009};
2010
2011static PyObject *
2012arraydescr_subdescr_get(PyArray_Descr *self, void *NPY_UNUSED(ignored))
2013{
2014 if (!PyDataType_HASSUBARRAY(self)) {
2015 Py_RETURN_NONE;
2016 }
2017 return Py_BuildValue("OO",
2018 (PyObject *)self->subarray->base, self->subarray->shape);
2019}
2020
2021NPY_NO_EXPORT PyObject *
2022arraydescr_protocol_typestr_get(PyArray_Descr *self, void *NPY_UNUSED(ignored))

Callers 1

arraydescr_reduceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected