source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/MatrixBase_marked.cpp@ 136

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

Doc

File size: 484 bytes
Line 
1#ifndef _MSC_VER
2 #warning deprecated
3#endif
4/*
5Matrix3d m = Matrix3d::Zero();
6m.part<Eigen::UpperTriangular>().setOnes();
7cout << "Here is the matrix m:" << endl << m << endl;
8Matrix3d n = Matrix3d::Ones();
9n.part<Eigen::LowerTriangular>() *= 2;
10cout << "Here is the matrix n:" << endl << n << endl;
11cout << "And now here is m.inverse()*n, taking advantage of the fact that"
12 " m is upper-triangular:" << endl
13 << m.marked<Eigen::UpperTriangular>().solveTriangular(n);
14*/
Note: See TracBrowser for help on using the repository browser.