BSplinebasis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
bspline::operators::OperatorSum< O1, O2, operation, > Class Template Referencefinal

Operator sum. Represents the sum or difference of two operators. More...

#include <CompoundOperators.h>

Inheritance diagram for bspline::operators::OperatorSum< O1, O2, operation, >:
Inheritance graph
[legend]
Collaboration diagram for bspline::operators::OperatorSum< O1, O2, operation, >:
Collaboration graph
[legend]

Public Member Functions

 OperatorSum (O1 o1, O2 o2)
 Creates an OperatorSum from two operators.
 
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 opertor to 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<typename O1, typename O2, AdditionOperation operation, std::enable_if_t< are_operators_v< O1, O2 > &&is_valid_operation_v< operation >, bool > = true>
class bspline::operators::OperatorSum< O1, O2, operation, >

Operator sum. Represents the sum or difference of two operators.

Template Parameters
O1The type of the first operator.
O2The type of the second operator.
operationIndicates whether the operators shall be added or subtracted.

Constructor & Destructor Documentation

◆ OperatorSum()

template<typename O1 , typename O2 , AdditionOperation operation, std::enable_if_t< are_operators_v< O1, O2 > &&is_valid_operation_v< operation >, bool > = true>
bspline::operators::OperatorSum< O1, O2, operation, >::OperatorSum ( O1  o1,
O2  o2 
)
inline

Creates an OperatorSum from two operators.

Parameters
o1The first operator.
o2The second ooperator.

Member Function Documentation

◆ outputOrder()

template<typename O1 , typename O2 , AdditionOperation operation, std::enable_if_t< are_operators_v< O1, O2 > &&is_valid_operation_v< operation >, bool > = true>
static constexpr size_t bspline::operators::OperatorSum< O1, O2, operation, >::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 O1 , typename O2 , AdditionOperation operation, std::enable_if_t< are_operators_v< O1, O2 > &&is_valid_operation_v< operation >, bool > = true>
template<typename T , size_t size>
std::array< T, outputOrder(size - 1)+1 > bspline::operators::OperatorSum< O1, O2, operation, >::transform ( const std::array< T, size > &  input,
const support::Grid< T > &  grid,
size_t  intervalIndex 
) const
inline

Applies opertor to 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: