source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/MatrixBase_extract.cpp

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

Doc

File size: 541 bytes
Line 
1#ifndef _MSC_VER
2 #warning deprecated
3#endif
4/* deprecated
5Matrix3i m = Matrix3i::Random();
6cout << "Here is the matrix m:" << endl << m << endl;
7cout << "Here is the upper-triangular matrix extracted from m:" << endl
8 << m.part<Eigen::UpperTriangular>() << endl;
9cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl
10 << m.part<Eigen::StrictlyUpperTriangular>() << endl;
11cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl
12 << m.part<Eigen::UnitLowerTriangular>() << endl;
13*/
Note: See TracBrowser for help on using the repository browser.