Benoit Jacob | a52c740 | 2007-12-20 21:25:13 +0000 | [diff] [blame^] | 1 | #include <Eigen/Core.h> |
Benoit Jacob | 647a817 | 2007-12-20 21:11:05 +0000 | [diff] [blame] | 2 | USING_EIGEN_DATA_TYPES |
3 | using namespace std; | ||||
4 | int main(int, char**) | ||||
5 | { | ||||
6 | Matrix4d m = Matrix4d::identity(); | ||||
7 | m.dynBlock(2,0,2,2) = m.dynBlock(0,0,2,2); | ||||
8 | cout << m << endl; | ||||
9 | return 0; | ||||
10 | } | ||||
11 | |||||
12 | /* Output: | ||||
13 | |||||
14 | 1 0 0 0 | ||||
15 | 0 1 0 0 | ||||
16 | 1 0 1 0 | ||||
17 | 0 1 0 1 | ||||
18 | |||||
19 | */ |