Files
eigen/doc/snippets/MatrixBase_applyOnTheLeft.cpp
T
2026-05-04 00:36:12 +00:00

9 lines
281 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.applyOnTheLeft(B);
cout << "After applyOnTheLeft, A = " << endl << A << endl;