OpenGrok
Cross Reference: MatrixBase_setIdentity.cpp
xref
: /
external
/
eigen
/
doc
/
snippets
/
MatrixBase_setIdentity.cpp
Home
|
History
|
Annotate
|
Download
|
only in
snippets
1
Matrix4i
m =
Matrix4i
::
Zero
();
2
m.
block
<
3,3
>(
1,0
).
setIdentity
();
3
cout
<< m <<
endl
;
4