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

Method block

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

Source from the content-addressed store, hash-verified

249 Eigen::Ref<Eigen::MatrixXd> ref() { return mat; }
250 Eigen::Ref<const Eigen::MatrixXd> refConst() { return mat; }
251 Eigen::Block<Eigen::MatrixXd> block(int r, int c, int nrow, int ncol) {
252 return mat.block(r, c, nrow, ncol);
253 }
254 Eigen::Block<const Eigen::MatrixXd> blockConst(int r, int c, int nrow, int ncol) const {
255 return mat.block(r, c, nrow, ncol);
256 }

Calls

no outgoing calls

Tested by

no test coverage detected