source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/TopicAliasing_mult2.cpp

Last change on this file was 136, checked in by ldecherf, 8 years ago

Doc

File size: 230 bytes
Line 
1MatrixXf matA(2,2), matB(2,2);
2matA << 2, 0, 0, 2;
3
4// Simple but not quite as efficient
5matB = matA * matA;
6cout << matB << endl << endl;
7
8// More complicated but also more efficient
9matB.noalias() = matA * matA;
10cout << matB;
Note: See TracBrowser for help on using the repository browser.