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