Sign in
eigen
/
mirror
/
61a32f2a4c8705256f3c6d09fa9b3231e322bf38
/
.
/
doc
/
snippets
/
Tutorial_SlicingVec.cpp
blob: 07e10bf6958c047a65c4e9c67e028718fc78c7dc [
file
]
RowVectorXf
v
=
RowVectorXf
::
LinSpaced
(
20
,
0
,
19
);
cout
<<
"Input:"
<<
endl
<<
v
<<
endl
;
Map
<
RowVectorXf
,
0
,
InnerStride
<
2
>
>
v2
(
v
.
data
(),
v
.
size
()/
2
);
cout
<<
"Even:"
<<
v2
<<
endl
;