Hauke Heibel | 494a886 | 2009-12-11 19:39:01 +0100 | [diff] [blame] | 1 | #ifndef _MSC_VER |
| 2 | #warning deprecated |
| 3 | #endif |
Gael Guennebaud | 7579360 | 2009-07-27 18:50:39 +0200 | [diff] [blame] | 4 | /* |
Benoit Jacob | 9b06e07 | 2009-01-27 17:42:04 +0000 | [diff] [blame] | 5 | Matrix3d m = Matrix3d::Zero(); |
Benoit Jacob | 9e00d94 | 2008-12-20 13:36:12 +0000 | [diff] [blame] | 6 | m.part<Eigen::StrictlyUpperTriangular>().setOnes(); |
Benoit Jacob | 486fdb2 | 2008-05-29 03:12:30 +0000 | [diff] [blame] | 7 | cout << "Here is the matrix m:" << endl << m << endl; |
| 8 | cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl |
| 9 | << "taking advantage of the symmetry." << endl; |
| 10 | Matrix3d n; |
| 11 | n.part<Eigen::SelfAdjoint>() = (m*m.adjoint()).lazy(); |
| 12 | cout << "The result is:" << endl << n << endl; |
Gael Guennebaud | 7579360 | 2009-07-27 18:50:39 +0200 | [diff] [blame] | 13 | */ |