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

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

Doc

File size: 434 bytes
Line 
1#ifndef _MSC_VER
2 #warning deprecated
3#endif
4/*
5Matrix3d m = Matrix3d::Zero();
6m.part<Eigen::StrictlyUpperTriangular>().setOnes();
7cout << "Here is the matrix m:" << endl << m << endl;
8cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl
9 << "taking advantage of the symmetry." << endl;
10Matrix3d n;
11n.part<Eigen::SelfAdjoint>() = (m*m.adjoint()).lazy();
12cout << "The result is:" << endl << n << endl;
13*/
Note: See TracBrowser for help on using the repository browser.