Sign in
eigen
/
mirror
/
25904802bc7a17f3436479a414234486ff4e084e
/
.
/
doc
/
snippets
/
MatrixBase_block_int_int_int_int.cpp
blob: 1aeadfb1821d56bb6c4a7a470ad0120654cd8332 [
file
] [
log
] [
blame
]
Matrix4i
m
=
Matrix4i
::
random
();
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"Here is m.block(1, 1, 2, 2):"
<<
endl
<<
m
.
block
(
1
,
1
,
2
,
2
)
<<
endl
;
m
.
block
(
1
,
1
,
2
,
2
).
setZero
();
cout
<<
"Now the matrix m is:"
<<
endl
<<
m
<<
endl
;