libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
8 lines
285 B
C++
8 lines
285 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
Array4i v = Array4i::Random().abs();
|
|
cout << "Here is the initial vector v:\n" << v.transpose() << "\n";
|
|
std::sort(v.begin(), v.end());
|
|
cout << "Here is the sorted vector v:\n" << v.transpose() << "\n";
|