eigen/doc/snippets/MatrixBase_block.cpp
Benoit Jacob 3cd2a125b2 - rework the coefficients API
- make vectors use a separate loop unroller, so that copying a
row-vector into a col-vector is now possible
- add much more documentation
- misc improvements
2007-12-24 11:14:25 +00:00

4 lines
114 B
C++

Matrix4d m = Matrix4d::diagonal(Vector4d(1,2,3,4));
m.block<2, 2>(2, 0) = m.block<2, 2>(2, 2);
cout << m << endl;