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

Method getPtr

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

Source from the content-addressed store, hash-verified

244 static const Eigen::MatrixXd createConst() { return Eigen::MatrixXd::Ones(10, 10); }
245 Eigen::MatrixXd &get() { return mat; }
246 Eigen::MatrixXd *getPtr() { return &mat; }
247 const Eigen::MatrixXd &view() { return mat; }
248 const Eigen::MatrixXd *viewPtr() { return &mat; }
249 Eigen::Ref<Eigen::MatrixXd> ref() { return mat; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected