libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
10 lines
344 B
C++
10 lines
344 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
Matrix4i m = Matrix4i::Random();
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here is m.topLeftCorner(2, 2):" << endl;
|
|
cout << m.topLeftCorner(2, 2) << endl;
|
|
m.topLeftCorner(2, 2).setZero();
|
|
cout << "Now the matrix m is:" << endl << m << endl;
|