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

Method data

include/pybind11/numpy.h:701–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699 /// Pointer access to the data at the given indices.
700 template <typename... Ix>
701 const T *data(Ix... ix) const {
702 return &operator()(ssize_t(ix)...);
703 }
704
705 /// Returns the item size, i.e. sizeof(T)
706 constexpr static ssize_t itemsize() { return sizeof(T); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected