mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
b5333b6760
Add examples; move methods from EigenBase.h to MatrixBase.h
(grafted from 7ea6ef8969
)
10 lines
292 B
C++
10 lines
292 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 *= B;
|
|
cout << "After A *= B, A = " << endl << A << endl;
|
|
A.applyOnTheRight(B); // equivalent to A *= B
|
|
cout << "After applyOnTheRight, A = " << endl << A << endl;
|