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

Method char_

include/pybind11/numpy.h:920–925  ·  view source on GitHub ↗

Single-character for dtype's type. For example, ``float`` is 'f', ``double`` 'd', ``int`` 'i', and ``long`` 'l'.

Source from the content-addressed store, hash-verified

918 /// Single-character for dtype's type.
919 /// For example, ``float`` is 'f', ``double`` 'd', ``int`` 'i', and ``long`` 'l'.
920 char char_() const {
921 // Note: The signature, `dtype::char_` follows the naming of NumPy's
922 // public Python API (i.e., ``dtype.char``), rather than its internal
923 // C API (``PyArray_Descr::type``).
924 return detail::array_descriptor_proxy(m_ptr)->type;
925 }
926
927 /// Type number of dtype. Note that different values may be returned for equivalent types,
928 /// e.g. even though ``long`` may be equivalent to ``int`` or ``long long``, they still have

Callers 1

TEST_SUBMODULEFunction · 0.80

Calls 1

array_descriptor_proxyFunction · 0.85

Tested by 1

TEST_SUBMODULEFunction · 0.64