blob: d3e7f482e703d3c0afe0aa4d2f23849ed66a4f96 [file] [log] [blame]
Hauke Heibel494a8862009-12-11 19:39:01 +01001#ifndef _MSC_VER
2 #warning deprecated
3#endif
Gael Guennebaud75793602009-07-27 18:50:39 +02004/*
Benoit Jacob9b06e072009-01-27 17:42:04 +00005Matrix3d m = Matrix3d::Zero();
Benoit Jacob9e00d942008-12-20 13:36:12 +00006m.part<Eigen::StrictlyUpperTriangular>().setOnes();
Benoit Jacob486fdb22008-05-29 03:12:30 +00007cout << "Here is the matrix m:" << endl << m << endl;
8cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl
9 << "taking advantage of the symmetry." << endl;
10Matrix3d n;
11n.part<Eigen::SelfAdjoint>() = (m*m.adjoint()).lazy();
12cout << "The result is:" << endl << n << endl;
Gael Guennebaud75793602009-07-27 18:50:39 +020013*/