MCPcopy Create free account
hub / github.com/pybind/pybind11 / array_descriptor2_proxy

Function array_descriptor2_proxy

include/pybind11/numpy.h:552–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552inline const PyArrayDescr2_Proxy *array_descriptor2_proxy(const PyObject *ptr) {
553 return reinterpret_cast<const PyArrayDescr2_Proxy *>(ptr);
554}
555
556inline bool check_flags(const void *ptr, int flag) {
557 return (flag == (array_proxy(ptr)->flags & flag));

Callers 4

itemsizeMethod · 0.85
has_fieldsMethod · 0.85
alignmentMethod · 0.85
flagsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected