source:
pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/MatrixBase_diagonal.cpp
Last change on this file was 136, checked in by , 8 years ago | |
---|---|
File size: 188 bytes |
Line | |
---|---|
1 | Matrix3i m = Matrix3i::Random(); |
2 | cout << "Here is the matrix m:" << endl << m << endl; |
3 | cout << "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.