version 3.9.0
Loading...
Searching...
No Matches
Dumux::InterpolationPolicy::Linear Struct Reference

interpolate linearly between two given values

#include <dumux/common/math.hh>

Static Public Member Functions

template<class Scalar >
static constexpr Scalar interpolate (Scalar ip, const std::array< Scalar, 2 > &params)
 interpolate linearly between two given values
 

Member Function Documentation

◆ interpolate()

template<class Scalar >
static constexpr Scalar Dumux::InterpolationPolicy::Linear::interpolate ( Scalar ip,
const std::array< Scalar, 2 > & params )
inlinestaticconstexpr
Parameters
ipthe interpolation point in [0,1]
paramsarray with the lower and upper bound

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