#include <gsl/gsl_errno.h>
#include <gsl/gsl_spline.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <numeric>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
|
template<typename T , typename Cmp > |
Permutation | smash::generate_sort_permutation (std::vector< T > const &v, Cmp compare) |
| Calculate the permutations necessary for sorting a vector. More...
|
|
template<typename T > |
std::vector< T > | smash::apply_permutation (const std::vector< T > &v, const Permutation &p) |
| Apply a permutation to a vector. More...
|
|
template<typename T > |
void | smash::check_duplicates (const std::vector< T > &x, const std::string &error_position) |
| Check whether two components have the same value in a sorted vector x. More...
|
|
template<typename T > |
size_t | smash::find_index (const std::vector< T > &v, T x) |
| Find the index in v that corresponds to the last value strictly smaller than x. More...
|
|