mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
e7bdbe2e6a
map() moves from MatrixBase to Matrix much more documentation/examples/snippets
5 lines
188 B
C++
5 lines
188 B
C++
Matrix3i m = Matrix3i::random();
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here are the coefficients on the main diagonal of m:" << endl
|
|
<< m.diagonal() << endl;
|