ALFI
Advanced Library for Function Interpolation
Loading...
Searching...
No Matches
alfi::spline::LinearSpline< Number, Container > Class Template Reference

#include <linear.h>

Public Member Functions

 LinearSpline ()=default
 
template<typename ContainerXType>
 LinearSpline (ContainerXType &&X, const Container< Number > &Y)
 
 LinearSpline (const LinearSpline &other)=default
 
 LinearSpline (LinearSpline &&other) noexcept=default
 
LinearSplineoperator= (const LinearSpline &other)=default
 
LinearSplineoperator= (LinearSpline &&other) noexcept=default
 
template<typename ContainerXType>
void construct (ContainerXType &&X, const Container< Number > &Y)
 
Number eval (const Number &x) const
 
Number eval (const Number &x, SizeT segment) const
 
Container< Number > eval (const Container< Number > &xx, bool sorted=true) const
 
Number operator() (const Number &x) const
 
Container< Number > operator() (const Container< Number > &xx) const
 
const Container< Number > & X () const &
 
Container< Number > && X () &&
 
const Container< Number > & coeffs () const &
 
Container< Number > && coeffs () &&
 

Static Public Member Functions

static Container< Number > compute_coeffs (const Container< Number > &X, const Container< Number > &Y)
 
static std::pair< SizeT, SizeTsegment (SizeT index)
 

Constructor & Destructor Documentation

◆ LinearSpline() [1/4]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
alfi::spline::LinearSpline< Number, Container >::LinearSpline ( )
default

◆ LinearSpline() [2/4]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
template<typename ContainerXType>
alfi::spline::LinearSpline< Number, Container >::LinearSpline ( ContainerXType && X,
const Container< Number > & Y )
inline

◆ LinearSpline() [3/4]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
alfi::spline::LinearSpline< Number, Container >::LinearSpline ( const LinearSpline< Number, Container > & other)
default

◆ LinearSpline() [4/4]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
alfi::spline::LinearSpline< Number, Container >::LinearSpline ( LinearSpline< Number, Container > && other)
defaultnoexcept

Member Function Documentation

◆ compute_coeffs()

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
static Container< Number > alfi::spline::LinearSpline< Number, Container >::compute_coeffs ( const Container< Number > & X,
const Container< Number > & Y )
inlinestatic

◆ operator=() [1/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
LinearSpline & alfi::spline::LinearSpline< Number, Container >::operator= ( const LinearSpline< Number, Container > & other)
default

◆ operator=() [2/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
LinearSpline & alfi::spline::LinearSpline< Number, Container >::operator= ( LinearSpline< Number, Container > && other)
defaultnoexcept

◆ construct()

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
template<typename ContainerXType>
void alfi::spline::LinearSpline< Number, Container >::construct ( ContainerXType && X,
const Container< Number > & Y )
inline

◆ eval() [1/3]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Number alfi::spline::LinearSpline< Number, Container >::eval ( const Number & x) const
inline

◆ eval() [2/3]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Number alfi::spline::LinearSpline< Number, Container >::eval ( const Number & x,
SizeT segment ) const
inline

◆ eval() [3/3]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Container< Number > alfi::spline::LinearSpline< Number, Container >::eval ( const Container< Number > & xx,
bool sorted = true ) const
inline

◆ operator()() [1/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Number alfi::spline::LinearSpline< Number, Container >::operator() ( const Number & x) const
inline

◆ operator()() [2/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Container< Number > alfi::spline::LinearSpline< Number, Container >::operator() ( const Container< Number > & xx) const
inline

◆ X() [1/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
const Container< Number > & alfi::spline::LinearSpline< Number, Container >::X ( ) const &
inline

◆ X() [2/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Container< Number > && alfi::spline::LinearSpline< Number, Container >::X ( ) &&
inline

◆ coeffs() [1/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
const Container< Number > & alfi::spline::LinearSpline< Number, Container >::coeffs ( ) const &
inline

◆ coeffs() [2/2]

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
Container< Number > && alfi::spline::LinearSpline< Number, Container >::coeffs ( ) &&
inline

◆ segment()

template<typename Number = DefaultNumber, template< typename, typename... > class Container = DefaultContainer>
static std::pair< SizeT, SizeT > alfi::spline::LinearSpline< Number, Container >::segment ( SizeT index)
inlinestatic

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