Returns element 2,1 from a matrix (used to test copy/nocopy)
| 56 | |
| 57 | // Returns element 2,1 from a matrix (used to test copy/nocopy) |
| 58 | double get_elem(const Eigen::Ref<const Eigen::MatrixXd> &m) { return m(2, 1); } |
| 59 | |
| 60 | // Returns a matrix with 10*r + 100*c added to each matrix element (to help test that the matrix |
| 61 | // reference is referencing rows/columns correctly). |