MCPcopy Create free account
hub / github.com/davisking/dlib / num

Method num

dlib/external/pybind11/include/pybind11/numpy.h:729–734  ·  view source on GitHub ↗

type number of dtype.

Source from the content-addressed store, hash-verified

727
728 /// type number of dtype.
729 int num() const {
730 // Note: The signature, `dtype::num` follows the naming of NumPy's public
731 // Python API (i.e., ``dtype.num``), rather than its internal
732 // C API (``PyArray_Descr::type_num``).
733 return detail::array_descriptor_proxy(m_ptr)->type_num;
734 }
735
736 /// Single character for byteorder
737 char byteorder() const { return detail::array_descriptor_proxy(m_ptr)->byteorder; }

Callers

nothing calls this directly

Calls 1

array_descriptor_proxyFunction · 0.85

Tested by

no test coverage detected