xerus
a general purpose tensor library
sort.h File Reference

Header file for some extended sorting functions. More...

#include <vector>
#include <algorithm>
#include "check.h"

Go to the source code of this file.

Namespaces

 xerus
 The main namespace of xerus.
 
 xerus::misc
 Collection of classes and functions that provide elementary functionality that is not special to xerus as a tensor library.
 

Functions

template<class T >
void xerus::misc::apply_permutation (std::vector< T > &_vec, const std::vector< size_t > &_permutation)
 
template<class T , class Comparator >
std::vector< size_t > xerus::misc::create_sort_permutation (const std::vector< T > &_vec, Comparator _comp)
 
template<class KeyType , class DataType , class Comparator >
void xerus::misc::simultaneous_sort (std::vector< KeyType > &_keyVector, std::vector< DataType > &_dataVector, Comparator _comp)
 

Detailed Description

Header file for some extended sorting functions.

Definition in file sort.h.