mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 18:19:34 +08:00
6 lines
291 B
C++
6 lines
291 B
C++
Matrix3d m = Matrix3d::diagonal(Vector3d(1,2,3));
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here is m.dynBlock(1, 1, 2, 1):" << endl << m.dynBlock(1, 1, 2, 1) << endl;
|
|
m.dynBlock(1, 0, 2, 1) = m.dynBlock(1, 1, 2, 1);
|
|
cout << "Now the matrix m is:" << endl << m << endl;
|