mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
matrix storage order can now also be row-dominant (choosable for each matrix separately)
map() moves from MatrixBase to Matrix much more documentation/examples/snippets
This commit is contained in:
4
doc/snippets/MatrixBase_diagonal.cpp
Normal file
4
doc/snippets/MatrixBase_diagonal.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user