mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
many small fixes and documentation improvements,
this should be alpha5.
This commit is contained in:
8
doc/snippets/MatrixBase_extract.cpp
Normal file
8
doc/snippets/MatrixBase_extract.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
Matrix3i m = Matrix3i::random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is the upper-triangular matrix extracted from m:" << endl
|
||||
<< m.extract<Eigen::Upper>() << endl;
|
||||
cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl
|
||||
<< m.extract<Eigen::StrictlyUpper>() << endl;
|
||||
cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl
|
||||
<< m.extract<Eigen::UnitLower>() << endl;
|
||||
Reference in New Issue
Block a user