Sign in
android
/
platform
/
external
/
eigen
/
refs/heads/android15-tests-dev
/
.
/
doc
/
snippets
/
Tutorial_SlicingVec.cpp
blob: 9b822464d6a5b0ea45b6f80798c6d09126f21f71 [
file
] [
log
] [
blame
] [
edit
]
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
;