Lines Matching defs:block
167 // Return a block of a matrix (gives non-standard strides)
168 m.def("block", [](const Eigen::Ref<const Eigen::MatrixXd> &x, int start_row, int start_col, int block_rows, int block_cols) {
169 return x.block(start_row, start_col, block_rows, block_cols);
187 Eigen::Block<Eigen::MatrixXd> block(int r, int c, int nrow, int ncol) { return mat.block(r, c, nrow, ncol); }
188 Eigen::Block<const Eigen::MatrixXd> blockConst(int r, int c, int nrow, int ncol) const { return mat.block(r, c, nrow, ncol); }
211 .def("block", &ReturnTester::block)
212 .def("block_safe", &ReturnTester::block, rvp::reference_internal)
214 .def("copy_block", &ReturnTester::block, rvp::copy)