source: pacpussensors/trunk/Vislab/lib3dv/eigen/Eigen-install/doc/snippets/compile_MatrixBase_extract.cpp@ 136

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

Doc

File size: 716 bytes
Line 
1#include <Eigen/Dense>
2#include <iostream>
3
4using namespace Eigen;
5using namespace std;
6
7int main(int, char**)
8{
9 cout.precision(3);
10 #ifndef _MSC_VER
11 #warning deprecated
12#endif
13/* deprecated
14Matrix3i m = Matrix3i::Random();
15cout << "Here is the matrix m:" << endl << m << endl;
16cout << "Here is the upper-triangular matrix extracted from m:" << endl
17 << m.part<Eigen::UpperTriangular>() << endl;
18cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl
19 << m.part<Eigen::StrictlyUpperTriangular>() << endl;
20cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl
21 << m.part<Eigen::UnitLowerTriangular>() << endl;
22*/
23 return 0;
24}
Note: See TracBrowser for help on using the repository browser.