• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 Array4i v = Array4i::Random().abs();
2 cout << "Here is the initial vector v:\n" << v.transpose() << "\n";
3 std::sort(v.begin(), v.end());
4 cout << "Here is the sorted vector v:\n" << v.transpose() << "\n";
5