BSplinebasis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
bspline::operators::Derivative< n > Class Template Referencefinal

Derivative operator. More...

#include <Derivative.h>

Inheritance diagram for bspline::operators::Derivative< n >:
Inheritance graph
[legend]
Collaboration diagram for bspline::operators::Derivative< n >:
Collaboration graph
[legend]

Public Member Functions

template<typename T , size_t size>
std::array< T, outputOrder(size - 1)+1 > transform (const std::array< T, size > &input, const support::Grid< T > &grid, size_t intervalIndex) const
 Applies operator to one interval.
 

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<size_t n>
class bspline::operators::Derivative< n >

Derivative operator.

Represents the derivative operator $\mathrm{d}^n/\mathrm{d}x^n$.

Template Parameters
nOrder of the derivative.

Member Function Documentation

◆ outputOrder()

template<size_t n>
static constexpr size_t bspline::operators::Derivative< n >::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<size_t n>
template<typename T , size_t size>
std::array< T, outputOrder(size - 1)+1 > bspline::operators::Derivative< n >::transform ( const std::array< T, size > &  input,
const support::Grid< T > &  grid,
size_t  intervalIndex 
) const
inline

Applies operator to one interval.

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 coefficients.
sizeThe size of the input array, i. e. the number of coefficients.
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: