mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 18:19:34 +08:00
5 lines
203 B
C++
5 lines
203 B
C++
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";
|