eigen/doc/snippets/MatrixBase_setIdentity.cpp
Benoit Jacob 95dc68dc86 renaming:
Block -> FixedBlock
DynBlock -> Block
indeed, previous commit solves the main issue with DynBlock so
is should now be the more commonly used one.
2008-01-13 20:19:14 +00:00

4 lines
88 B
C++

Matrix4i m = Matrix4i::zero();
m.fixedBlock<3,3>(1,0).setIdentity();
cout << m << endl;