|
ADS
Algorithms and Data Structures
|
Functions | |
| template<Executor E, class T, class C = std::less<>> | |
| void | sort (E &ex, MPI_Comm comm, std::vector< T > &A, C less=C()) |
| the items of \( A \) of all the processes of comm sorted by less, the threads of ex sorting and merging within each process, after which \( A \) holds the part of the process, the parts in the order of the ranks; it throws std::length_error, in every process, if the bytes of a piece or of the pieces a process receives exceed the counts of MPI (those of int before MPI 4, whose MPI_Alltoallv_c counts them in 64 bits) | |
| template<class T, class C = std::less<>> | |
| void | sort (MPI_Comm comm, std::vector< T > &A, C less=C()) |
| the items of \( A \) of all the processes of comm sorted by less as sort() above, each process on one thread | |