Sign in
third-party-mirror
/
eigen
/
2571273647cdf6673639ebe9b3aa3237c1e7a822
/
.
/
doc
/
snippets
/
Tutorial_SlicingVec.cpp
blob: d0c81c691f70fb006f8365d85941a3010bc851d2 [
file
] [
log
] [
blame
]
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
;