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

Method of

include/pybind11/numpy.h:883–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 /// Return dtype associated with a C++ type.
882 template <typename T>
883 static dtype of() {
884 return detail::npy_format_descriptor<typename std::remove_cv<T>::type>::dtype();
885 }
886
887 /// Return the type number associated with a C++ type.
888 /// This is the constexpr equivalent of `dtype::of<T>().num()`.

Callers

nothing calls this directly

Calls 1

dtypeClass · 0.85

Tested by

no test coverage detected