mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
committed by
Rasmus Munk Larsen
parent
23fcc1c6c9
commit
9b709e8269
@@ -1,5 +1,5 @@
|
||||
Matrix3d mat3;
|
||||
mat3 << 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9;
|
||||
Matrix3d m;
|
||||
m << 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9;
|
||||
cout << "Here's the matrix m:" << endl << m << endl;
|
||||
cout << "m.diagonal().asDiagonal() returns: " << m.diagonal().asDiagonal() << endl;
|
||||
cout << "m.diagonalView() returns: " << m.diagonalView() << endl;
|
||||
cout << "m.diagonal().asDiagonal() returns: " << endl << m.diagonal().asDiagonal() << endl;
|
||||
cout << "m.diagonalView() returns: " << endl << m.diagonalView() << endl;
|
||||
|
||||
Reference in New Issue
Block a user