ViennaLS
Loading...
Searching...
No Matches
lsInternal::FiniteDifferences< T, scheme > Class Template Reference

#include <lsFiniteDifferences.hpp>

Public Member Functions

 FiniteDifferences ()
 

Static Public Member Functions

static unsigned getNumberOfValues (DifferentiationSchemeEnum s)
 
static T weno3 (const T *x, T delta, bool plus, T eps=1e-6)
 Weighted essentially non-oscillatory differentiation scheme 3rd order x1 ... x5 stencil points from left to right plus == true => right-sided.
 
static T weno5 (const T *x, T dx, bool plus, T eps=1e-6)
 
static T differenceNegative (const T *values, const double &delta)
 
static T differencePositive (const T *values, const double &delta)
 
static T calculateGradient (const T *values, const double &delta)
 
static T calculateGradientDiff (const T *values, const double &delta)
 

Constructor & Destructor Documentation

◆ FiniteDifferences()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
lsInternal::FiniteDifferences< T, scheme >::FiniteDifferences ( )
inline

Member Function Documentation

◆ calculateGradient()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static T lsInternal::FiniteDifferences< T, scheme >::calculateGradient ( const T * values,
const double & delta )
inlinestatic

◆ calculateGradientDiff()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static T lsInternal::FiniteDifferences< T, scheme >::calculateGradientDiff ( const T * values,
const double & delta )
inlinestatic

◆ differenceNegative()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static T lsInternal::FiniteDifferences< T, scheme >::differenceNegative ( const T * values,
const double & delta )
inlinestatic

◆ differencePositive()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static T lsInternal::FiniteDifferences< T, scheme >::differencePositive ( const T * values,
const double & delta )
inlinestatic

◆ getNumberOfValues()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static unsigned lsInternal::FiniteDifferences< T, scheme >::getNumberOfValues ( DifferentiationSchemeEnum s)
inlinestatic

◆ weno3()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static T lsInternal::FiniteDifferences< T, scheme >::weno3 ( const T * x,
T delta,
bool plus,
T eps = 1e-6 )
inlinestatic

Weighted essentially non-oscillatory differentiation scheme 3rd order x1 ... x5 stencil points from left to right plus == true => right-sided.

◆ weno5()

template<class T , DifferentiationSchemeEnum scheme = DifferentiationSchemeEnum::FIRST_ORDER>
static T lsInternal::FiniteDifferences< T, scheme >::weno5 ( const T * x,
T dx,
bool plus,
T eps = 1e-6 )
inlinestatic

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