version 3.10-dev
Dumux::InterpolationPolicy::LinearTable Struct Reference

interpolate linearly in a piecewise linear function (tabularized function)

#include <dumux/common/math.hh>

Static Public Member Functions

template<class Scalar , class RandomAccessContainer0 , class RandomAccessContainer1 >
static constexpr Scalar interpolate (Scalar ip, const RandomAccessContainer0 &range, const RandomAccessContainer1 &values)
 interpolate linearly in a piecewise linear function (tabularized function) More...
 
template<class Scalar , class RandomAccessContainer >
static constexpr Scalar interpolate (Scalar ip, const std::pair< RandomAccessContainer, RandomAccessContainer > &table)
 

Member Function Documentation

◆ interpolate() [1/2]

template<class Scalar , class RandomAccessContainer0 , class RandomAccessContainer1 >
static constexpr Scalar Dumux::InterpolationPolicy::LinearTable::interpolate ( Scalar  ip,
const RandomAccessContainer0 &  range,
const RandomAccessContainer1 &  values 
)
inlinestaticconstexpr
Parameters
ipthe interpolation point
rangepositions of values
valuesvalues to interpolate from
Note
if the interpolation point is out of bounds this will return the bounds

◆ interpolate() [2/2]

template<class Scalar , class RandomAccessContainer >
static constexpr Scalar Dumux::InterpolationPolicy::LinearTable::interpolate ( Scalar  ip,
const std::pair< RandomAccessContainer, RandomAccessContainer > &  table 
)
inlinestaticconstexpr

The documentation for this struct was generated from the following file: