blob: 29b9577b1f3533ce79c74ac57258ab0af16020ab [file] [log] [blame]
Benoit Jacob486fdb22008-05-29 03:12:30 +00001Matrix3d m = Matrix3i::zero();
2m.part<Eigen::StrictlyUpper>().setOnes();
3cout << "Here is the matrix m:" << endl << m << endl;
4cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl
5 << "taking advantage of the symmetry." << endl;
6Matrix3d n;
7n.part<Eigen::SelfAdjoint>() = (m*m.adjoint()).lazy();
8cout << "The result is:" << endl << n << endl;