Sign in
◑
Theme
eigen
/
mirror
/
ba3ca95f9b1b7dae9fff87ddef0505f7f6ac89b7
/
.
/
doc
/
snippets
/
MatrixBase_setIdentity.cpp
blob: f11ea4e8a8bc607f9cd6278059b04782804c58c9 [
file
]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
Matrix4i
m
=
Matrix4i
::
Zero
();
m
.
block
<
3
,
3
>(
1
,
0
).
setIdentity
();
cout
<<
m
<<
endl
;