mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
6 lines
113 B
C++
6 lines
113 B
C++
Matrix3f m;
|
|
m.row(0) << 1, 2, 3;
|
|
m.block(1,0,2,2) << 4, 5, 7, 8;
|
|
m.col(2).tail(2) << 6, 9;
|
|
std::cout << m;
|