You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
434 B

  1. #ifndef _MSC_VER
  2. #warning deprecated
  3. #endif
  4. /*
  5. Matrix3d m = Matrix3d::Zero();
  6. m.part<Eigen::StrictlyUpperTriangular>().setOnes();
  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;
  13. */