3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | List of all members
Dumux::InterpolationPolicy::Linear Struct Reference

interpolate linearly between two given values More...

#include <dumux/common/math.hh>

Description

interpolate linearly between two given values

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 More...
 

Member Function Documentation

◆ interpolate()

template<class Scalar >
static constexpr Scalar Dumux::InterpolationPolicy::Linear::interpolate ( Scalar  ip,
const std::array< Scalar, 2 > &  params 
)
inlinestaticconstexpr

interpolate linearly between two given values

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: