BSplinebasis
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bspline::integration::LinearForm< O, > Class Template Referencefinal

A linear form with a user-provided operator. More...

#include <LinearForm.h>

Public Member Functions

 LinearForm (O o)
 Constructor constructing a LinearForm from an operator.
 
 LinearForm ()
 Default constructor constructing a LinearForm.
 
template<typename T , size_t order>
T evaluate (const Spline< T, order > &a) const
 Evaluates the linear form for a particular spline.
 
template<typename T , size_t order>
T operator() (const Spline< T, order > &a) const
 

Detailed Description

template<typename O, std::enable_if_t< operators::is_operator_v< O >, bool > = true>
class bspline::integration::LinearForm< O, >

A linear form with a user-provided operator.

Represents the linear form

\[\left\langle
a\right\rangle=\int\limits_{-\infty}^{\infty}\mathrm{d}x~\left[\hat{O}\,\,
a(x)\right]\]

with the operator $\hat{O}$ applied to the spline.

Template Parameters
OThe type of the operator applied to the spline.

Constructor & Destructor Documentation

◆ LinearForm()

template<typename O , std::enable_if_t< operators::is_operator_v< O >, bool > = true>
bspline::integration::LinearForm< O, >::LinearForm ( O  o)
inlineexplicit

Constructor constructing a LinearForm from an operator.

Parameters
oThe operator acting on the spline.

Member Function Documentation

◆ evaluate()

template<typename O , std::enable_if_t< operators::is_operator_v< O >, bool > = true>
template<typename T , size_t order>
T bspline::integration::LinearForm< O, >::evaluate ( const Spline< T, order > &  a) const
inline

Evaluates the linear form for a particular spline.

Parameters
aThe spline.
Template Parameters
TThe datatype of the splines.
orderThe order of the spline.
Returns
The value of the linear form for the given spline.

◆ operator()()

template<typename O , std::enable_if_t< operators::is_operator_v< O >, bool > = true>
template<typename T , size_t order>
T bspline::integration::LinearForm< O, >::operator() ( const Spline< T, order > &  a) const
inline

Alias for LinearForm::evaluate().

Evaluates the linear form for a particular spline.

Parameters
aThe spline.
Template Parameters
TThe datatype of the splines.
orderThe order of the spline.
Returns
The value of the linear form for the given spline.

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