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

Function PyArray_DescrConverter2

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

NUMPY_API * Get typenum from an object -- None goes to NULL */

Source from the content-addressed store, hash-verified

1379 * Get typenum from an object -- None goes to NULL
1380 */
1381NPY_NO_EXPORT int
1382PyArray_DescrConverter2(PyObject *obj, PyArray_Descr **at)
1383{
1384 if (obj == Py_None) {
1385 *at = NULL;
1386 return NPY_SUCCEED;
1387 }
1388 else {
1389 return PyArray_DescrConverter(obj, at);
1390 }
1391}
1392
1393
1394/**

Callers 4

PyArray_FromInterfaceFunction · 0.85
npyiter_convert_dtypesFunction · 0.85
array_einsumFunction · 0.85
array_can_cast_safelyFunction · 0.85

Calls 1

PyArray_DescrConverterFunction · 0.85

Tested by

no test coverage detected