AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
sorts.hpp File Reference
#include "axom/config.hpp"
#include "axom/core/execution/execution_space.hpp"
#include "axom/core/Macros.hpp"
#include "axom/core/Types.hpp"
#include "axom/core/utilities/Sorting.hpp"
#include <algorithm>
#include <numeric>
#include <vector>

Namespaces

 axom
 

Functions

template<typename ExecSpace , typename T >
void axom::sort (T *input, axom::IndexType size)
 Sort an array. More...
 
template<typename ExecSpace , typename ContiguousMemoryContainer >
void axom::sort (ContiguousMemoryContainer &input)
 Sort a container. More...
 
template<typename ExecSpace , typename Container1 , typename Container2 >
void axom::sort_pairs (Container1 &input1, Container2 &input2)
 Sort a pair of containers using the first container's elements as the values to sort. The second container is sorted the same way. More...
 
template<typename ExecSpace , typename T , typename U >
void axom::stable_sort_pairs (T *input1, U *input2, axom::IndexType size)
 Sort a pair of arrays using the first array's elements as the values to sort. The second array is sorted the same way. This sort is stable. More...
 
template<typename ExecSpace , typename Container1 , typename Container2 >
void axom::stable_sort_pairs (Container1 &input1, Container2 &input2)
 Sort a pair of containers using the first container's elements as the values to sort. The second container is sorted the same way. This sort is stable. More...