2008-07-21 08:34:46 +08:00
|
|
|
Matrix3i m = Matrix3i::Random();
|
2008-05-29 11:12:30 +08:00
|
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
|
|
cout << "Here is the upper-triangular matrix extracted from m:" << endl
|
2015-05-02 04:10:41 +08:00
|
|
|
<< Matrix3i(m.triangularView<Eigen::Upper>()) << endl;
|
2008-05-29 11:12:30 +08:00
|
|
|
cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl
|
2015-05-02 04:10:41 +08:00
|
|
|
<< Matrix3i(m.triangularView<Eigen::StrictlyUpper>()) << endl;
|
2008-05-29 11:12:30 +08:00
|
|
|
cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl
|
2015-05-02 04:10:41 +08:00
|
|
|
<< Matrix3i(m.triangularView<Eigen::UnitLower>()) << endl;
|
|
|
|
// FIXME need to implement output for triangularViews (Bug 885)
|