mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Extend tutorial page 5: Advanced initialization.
This commit is contained in:
5
doc/snippets/Tutorial_commainit_01b.cpp
Normal file
5
doc/snippets/Tutorial_commainit_01b.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user