Version: SMASH-3.1
interpolation.h File Reference
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <numeric>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include "gsl/gsl_errno.h"
#include "gsl/gsl_spline.h"

Go to the source code of this file.

Classes

class  smash::InterpolateLinear< T >
 Represent a linear interpolation. More...
 
class  smash::InterpolateDataLinear< T >
 Represent a piecewise linear interpolation. More...
 
class  smash::InterpolateDataSpline
 Represent a cubic spline interpolation. More...
 

Namespaces

 smash
 

Typedefs

using smash::Permutation = std::vector< size_t >
 Represent a permutation. More...
 

Functions

template<typename T >
smash::interpolate_trilinear (T ax, T ay, T az, T f1, T f2, T f3, T f4, T f5, T f6, T f7, T f8)
 Perform a trilinear 1st order interpolation. More...
 
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...