eigen/doc/snippets/MatrixBase_setIdentity.cpp
Benoit Jacob f12e9c53ac Patch by Gael Guennebaud: unify fixed-size and dynamic-size Block
expressions, update documentation.
2008-02-29 13:56:40 +00:00

4 lines
83 B
C++

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