BSplinebasis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
bspline::operators::SplineOperator< T, order > Class Template Referencefinal

Operator representation of a Spline. More...

#include <SplineOperator.h>

Inheritance diagram for bspline::operators::SplineOperator< T, order >:
Inheritance graph
[legend]
Collaboration diagram for bspline::operators::SplineOperator< T, order >:
Collaboration graph
[legend]

Public Member Functions

 SplineOperator (Spline< T, order > s)
 Constructor constructing a SplineOperator from a Spline.
 
template<size_t size>
auto transform (const std::array< T, size > &input, const support::Grid< T > &grid, size_t intervalIndex) const
 Applies operator to a Spline.
 

Static Public Member Functions

static constexpr size_t outputOrder (size_t inputOrder)
 Returns the order of the output spline for a given input order.
 

Detailed Description

template<typename T, size_t order>
class bspline::operators::SplineOperator< T, order >

Operator representation of a Spline.

Template Parameters
TThe data type of the spline.
orderThe order of the spline.

Constructor & Destructor Documentation

◆ SplineOperator()

template<typename T , size_t order>
bspline::operators::SplineOperator< T, order >::SplineOperator ( Spline< T, order s)
inline

Constructor constructing a SplineOperator from a Spline.

Parameters
sThe spline.

Member Function Documentation

◆ outputOrder()

template<typename T , size_t order>
static constexpr size_t bspline::operators::SplineOperator< T, order >::outputOrder ( size_t  inputOrder)
inlinestaticconstexpr

Returns the order of the output spline for a given input order.

Parameters
inputOrderthe order of the input spline.
Returns
The output spline-order for a given input input order.

◆ transform()

template<typename T , size_t order>
template<size_t size>
auto bspline::operators::SplineOperator< T, order >::transform ( const std::array< T, size > &  input,
const support::Grid< T > &  grid,
size_t  intervalIndex 
) const
inline

Applies operator to a Spline.

Applies the operator to a set of coefficients (representing a polynomial on one interval).

Parameters
inputThe polynomial coefficients.
gridThe global grid with respect to which the splines are defined.
intervalIndexThe index of the begin of the interval with respect to the global grid.
Template Parameters
TThe datatype of the spline.
sizeThe size of the array, i. e. the number of coefficients.
Exceptions
BSplineExceptionIf the spline _s is defined on a grid that is (logically) different from grid.
Returns
The polyomial coefficients arising from the application of this operator to the input coefficients.

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