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

Method fail_dim_check

include/pybind11/numpy.h:1331–1334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1329 friend struct detail::npy_format_descriptor;
1330
1331 void fail_dim_check(ssize_t dim, const std::string &msg) const {
1332 throw index_error(msg + ": " + std::to_string(dim) + " (ndim = " + std::to_string(ndim())
1333 + ')');
1334 }
1335
1336 template <typename... Ix>
1337 ssize_t byte_offset(Ix... index) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected