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

Method createConst

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

NOLINTNEXTLINE(readability-const-return-type)

Source from the content-addressed store, hash-verified

242 static Eigen::MatrixXd create() { return Eigen::MatrixXd::Ones(10, 10); }
243 // NOLINTNEXTLINE(readability-const-return-type)
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; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected