libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
8 lines
268 B
C++
8 lines
268 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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;
|