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

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

Doc

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