Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / MatrixBase_applyOnTheRight.cpp
blobe4b71b2d8813d77fdce69bb53146414a8669b899
1 Matrix3f A = Matrix3f::Random(3,3), B;
2 B << 0,1,0,
3 0,0,1,
4 1,0,0;
5 cout << "At start, A = " << endl << A << endl;
6 A *= B;
7 cout << "After A *= B, A = " << endl << A << endl;
8 A.applyOnTheRight(B); // equivalent to A *= B
9 cout << "After applyOnTheRight, A = " << endl << A << endl;