|
ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
#include "GeneralDomainDecomposition.h"#include "ALLLoadBalancer.h"#include "Domain.h"#include "NeighborAcquirer.h"#include "NeighbourCommunicationScheme.h"Functions | |
| template<typename ArrayType > | |
| std::vector< size_t > | getOrdering (const ArrayType &data) |
| std::vector<size_t> getOrdering | ( | const ArrayType & | data | ) |
Get the ordering of the input data. The ordering will contain indices of elements of data, starting with the smallest going to the biggest. e.g.: returns {2, 0, 3, 1} for data={5, 16, 4, 7}
| ArrayType | should be some array type, e.g., vector of int |
| data | the data to define the order |