Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Namespaces | Functions
vectorutils.hpp File Reference

Utilities for sorting vectors using permutations. More...

#include <vector>

Go to the source code of this file.

Namespaces

namespace  ore
 Serializable Credit Default Swap.
 
namespace  ore::data
 

Functions

template<typename T , typename Compare >
std::vector< std::size_t > sort_permutation (const std::vector< T > &vec, Compare &compare)
 
template<typename T >
std::vector< T > apply_permutation (const std::vector< T > &vec, const std::vector< std::size_t > &p)
 
template<typename T >
void apply_permutation_in_place (std::vector< T > &vec, const std::vector< std::size_t > &p)
 

Detailed Description

Utilities for sorting vectors using permutations.

Definition in file vectorutils.hpp.