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

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

Doc

File size: 241 bytes
Line 
1Matrix3d m = 10000 * Matrix3d::Identity();
2m(0,2) = 1;
3cout << "Here's the matrix m:" << endl << m << endl;
4cout << "m.isDiagonal() returns: " << m.isDiagonal() << endl;
5cout << "m.isDiagonal(1e-3) returns: " << m.isDiagonal(1e-3) << endl;
6
Note: See TracBrowser for help on using the repository browser.