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

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

Doc

File size: 188 bytes
Line 
1Matrix3i m = Matrix3i::Random();
2cout << "Here is the matrix m:" << endl << m << endl;
3cout << "Here are the coefficients on the main diagonal of m:" << endl
4 << m.diagonal() << endl;
Note: See TracBrowser for help on using the repository browser.