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

Function _is_array_descr_builtin

numpy/core/src/multiarray/hashdescr.c:57–66  ·  view source on GitHub ↗

* Return true if descr is a builtin type */

Source from the content-addressed store, hash-verified

55 * Return true if descr is a builtin type
56 */
57static int _is_array_descr_builtin(PyArray_Descr* descr)
58{
59 if (descr->fields != NULL && descr->fields != Py_None) {
60 return 0;
61 }
62 if (PyDataType_HASSUBARRAY(descr)) {
63 return 0;
64 }
65 return 1;
66}
67
68/*
69 * Add to l all the items which uniquely define a builtin type

Callers 1

_array_descr_walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected