| 61 | // reference is referencing rows/columns correctly). |
| 62 | template <typename MatrixArgType> |
| 63 | Eigen::MatrixXd adjust_matrix(MatrixArgType m) { |
| 64 | Eigen::MatrixXd ret(m); |
| 65 | for (int c = 0; c < m.cols(); c++) { |
| 66 | for (int r = 0; r < m.rows(); r++) { |
| 67 | ret(r, c) += 10 * r + 100 * c; // NOLINT(clang-analyzer-core.uninitialized.Assign) |
| 68 | } |
| 69 | } |
| 70 | return ret; |
| 71 | } |
| 72 | |
| 73 | struct CustomOperatorNew { |
| 74 | CustomOperatorNew() = default; |