1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-05-04 17:54:07 +08:00
eigen/doc/snippets/MatrixBase_applyOnTheLeft.cpp
Jitse Niesen 7ea6ef8969 Fix documentation of MatrixBase::applyOnTheLeft (bug )
Add examples; move methods from EigenBase.h to MatrixBase.h
2014-02-12 14:03:39 +00:00

8 lines
207 B
C++

Matrix3f A = Matrix3f::Random(3,3), B;
B << 0,1,0,
0,0,1,
1,0,0;
cout << "At start, A = " << endl << A << endl;
A.applyOnTheLeft(B);
cout << "After applyOnTheLeft, A = " << endl << A << endl;