Brian Silverman | 72890c2 | 2015-09-19 14:37:37 -0400 | [diff] [blame^] | 1 | #ifndef _MSC_VER |
| 2 | #warning deprecated |
| 3 | #endif |
| 4 | /* |
| 5 | Matrix3d m = Matrix3d::Zero(); |
| 6 | m.part<Eigen::UpperTriangular>().setOnes(); |
| 7 | cout << "Here is the matrix m:" << endl << m << endl; |
| 8 | Matrix3d n = Matrix3d::Ones(); |
| 9 | n.part<Eigen::LowerTriangular>() *= 2; |
| 10 | cout << "Here is the matrix n:" << endl << n << endl; |
| 11 | cout << "And now here is m.inverse()*n, taking advantage of the fact that" |
| 12 | " m is upper-triangular:" << endl |
| 13 | << m.marked<Eigen::UpperTriangular>().solveTriangular(n); |
| 14 | */ |