2
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-01-12 14:25:16 +08:00
eigen/doc/snippets/Tutorial_AdvancedInitialization_Block.cpp
2010-07-22 15:53:21 +01:00

6 lines
132 B
C++

MatrixXf matA(2, 2);
matA << 1, 2, 3, 4;
MatrixXf matB(4, 4);
matB << matA, matA/10, matA/10, matA;
std::cout << matB << std::endl;