Sign in
eigen
/
mirror
/
12e9de4abbe9a4cf9b2812e700ce41bdd0351cb3
/
.
/
doc
/
snippets
/
MatrixBase_block_int_int.cpp
blob: 974f86b54419f2c67d76be5c22e6d085abef46c6 [
file
]
RowVector4i
v
=
RowVector4i
::
Random
();
cout
<<
"Here is the vector v:"
<<
endl
<<
v
<<
endl
;
cout
<<
"Here is v.block(1, 2):"
<<
endl
<<
v
.
block
(
1
,
2
)
<<
endl
;
v
.
block
(
1
,
2
).
setZero
();
cout
<<
"Now the vector v is:"
<<
endl
<<
v
<<
endl
;