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

Function reset_refs

tests/test_eigen_matrix.cpp:52–55  ·  view source on GitHub ↗

Resets the values of the static matrices returned by get_cm()/get_rm()

Source from the content-addressed store, hash-verified

50}
51// Resets the values of the static matrices returned by get_cm()/get_rm()
52void reset_refs() {
53 reset_ref(get_cm());
54 reset_ref(get_rm());
55}
56
57// Returns element 2,1 from a matrix (used to test copy/nocopy)
58double get_elem(const Eigen::Ref<const Eigen::MatrixXd> &m) { return m(2, 1); }

Callers

nothing calls this directly

Calls 1

reset_refFunction · 0.85

Tested by

no test coverage detected