mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-20 16:49:38 +08:00

- reduction of sizeof(Block) for vector types - variants of block() and fixedBlock() for vector blocks - convenience methods start() and end() for vectors - convenience method corner() for matrices
6 lines
272 B
C++
6 lines
272 B
C++
Matrix3d m = Vector3d(1,2,3).asDiagonal();
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here is m.block(1, 1, 2, 1):" << endl << m.block(1, 1, 2, 1) << endl;
|
|
m.block(1, 0, 2, 1) = m.block(1, 1, 2, 1);
|
|
cout << "Now the matrix m is:" << endl << m << endl;
|