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

Method num_of

include/pybind11/numpy.h:890–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888 /// This is the constexpr equivalent of `dtype::of<T>().num()`.
889 template <typename T>
890 static constexpr int num_of() {
891 return detail::npy_format_descriptor<typename std::remove_cv<T>::type>::value;
892 }
893
894 /// Size of the data type in bytes.
895 ssize_t itemsize() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected