eigen/doc/snippets/MatrixBase_dynBlock.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
118 B
C++

Matrix3d m = Matrix3d::diagonal(Vector3d(1,2,3));
m.dynBlock(1, 0, 2, 1) = m.dynBlock(1, 1, 2, 1);
cout << m << endl;