source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/MatrixBase_isDiagonal.cpp@
138
Last change on this file since 138 was 136, checked in by , 8 years ago | |
---|---|
File size: 241 bytes |
Line | |
---|---|
1 | Matrix3d m = 10000 * Matrix3d::Identity(); |
2 | m(0,2) = 1; |
3 | cout << "Here's the matrix m:" << endl << m << endl; |
4 | cout << "m.isDiagonal() returns: " << m.isDiagonal() << endl; |
5 | cout << "m.isDiagonal(1e-3) returns: " << m.isDiagonal(1e-3) << endl; |
6 |
Note:
See TracBrowser
for help on using the repository browser.