5 lines
113 B

  1. Matrix3f m;
  2. m.row(0) << 1, 2, 3;
  3. m.block(1,0,2,2) << 4, 5, 7, 8;
  4. m.col(2).tail(2) << 6, 9;
  5. std::cout << m;