source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/examples/Tutorial_BlockOperations_corner.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 448 bytes
Line 
1#include <Eigen/Dense>
2#include <iostream>
3
4using namespace std;
5
6int main()
7{
8 Eigen::Matrix4f m;
9 m << 1, 2, 3, 4,
10 5, 6, 7, 8,
11 9, 10,11,12,
12 13,14,15,16;
13 cout << "m.leftCols(2) =" << endl << m.leftCols(2) << endl << endl;
14 cout << "m.bottomRows<2>() =" << endl << m.bottomRows<2>() << endl << endl;
15 m.topLeftCorner(1,3) = m.bottomRightCorner(3,1).transpose();
16 cout << "After assignment, m = " << endl << m << endl;
17}
Note: See TracBrowser for help on using the repository browser.