aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/function_dynBlock.cpp
blob: bd3cbae1f88ee09845944d8b3046e8c3098fd38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "../src/Core.h"
USING_EIGEN_DATA_TYPES
using namespace std;
int main(int, char**)
{
    Matrix4d m = Matrix4d::identity();
    m.dynBlock(2,0,2,2) = m.dynBlock(0,0,2,2);
    cout << m << endl;
    return 0;
}

/* Output:

1 0 0 0
0 1 0 0
1 0 1 0
0 1 0 1

*/