• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 ArrayXXi A = ArrayXXi::Random(4,4).abs();
2 cout << "Here is the initial matrix A:\n" << A << "\n";
3 for(auto row : A.rowwise())
4   std::sort(row.begin(), row.end());
5 cout << "Here is the sorted matrix A:\n" << A << "\n";
6