2009-12-12 02:39:01 +08:00
|
|
|
#ifndef _MSC_VER
|
|
|
|
#warning deprecated
|
|
|
|
#endif
|
2009-07-28 00:50:39 +08:00
|
|
|
/*
|
2009-01-28 01:42:04 +08:00
|
|
|
Matrix3d m = Matrix3d::Zero();
|
2008-12-20 21:36:12 +08:00
|
|
|
m.part<Eigen::StrictlyUpperTriangular>().setOnes();
|
2008-05-29 11:12:30 +08:00
|
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
|
|
cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl
|
|
|
|
<< "taking advantage of the symmetry." << endl;
|
|
|
|
Matrix3d n;
|
|
|
|
n.part<Eigen::SelfAdjoint>() = (m*m.adjoint()).lazy();
|
|
|
|
cout << "The result is:" << endl << n << endl;
|
2009-07-28 00:50:39 +08:00
|
|
|
*/
|