libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
11 lines
367 B
C++
11 lines
367 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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;
|