blob: 5337f0f4fe15a443d5d3448c637fbd8b47297eb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <iostream>
#include <Eigen/Dense>
using Eigen::MatrixXd;
int main(int, char *[])
{
MatrixXd m(2,3);
m(0,0) = -3;
m(1,0) = 1.5;
m.rightCols(2) = MatrixXd::Identity(2,2);
std::cout << 2*m << std::endl;
}
|