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

Multiplication operator for Operator and scalar. More...

#include <ScalarOperators.h>

Inheritance diagram for bspline::operators::ScalarMultiplication< S, O, >:
Inheritance graph
[legend]
Collaboration diagram for bspline::operators::ScalarMultiplication< S, O, >:
Collaboration graph
[legend]

Public Member Functions

 ScalarMultiplication (S s, O o)
 Multiplication of scalar and Operator.
 
 ScalarMultiplication (S s)
 Multiplication of scalar and a default constructed Operator.
 
template<typename T , size_t size>
auto 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<typename S, typename O, std::enable_if_t< are_scalar_multiplication_types_v< S, O >, bool > = true>
class bspline::operators::ScalarMultiplication< S, O, >

Multiplication operator for Operator and scalar.

Represents the multiplication of an operator with a scalar.

Template Parameters
Stype of the scalar.
Otype of the operator to be multiplied with the scalar.

Constructor & Destructor Documentation

◆ ScalarMultiplication() [1/2]

template<typename S , typename O , std::enable_if_t< are_scalar_multiplication_types_v< S, O >, bool > = true>
bspline::operators::ScalarMultiplication< S, O, >::ScalarMultiplication ( S  s,
O  o 
)
inline

Multiplication of scalar and Operator.

Constructor constructing an ScalarMultiplication from a scalar and an operator.

Parameters
sThe scalar to be multiplied.
oThe operator to be multiplied.

◆ ScalarMultiplication() [2/2]

template<typename S , typename O , std::enable_if_t< are_scalar_multiplication_types_v< S, O >, bool > = true>
bspline::operators::ScalarMultiplication< S, O, >::ScalarMultiplication ( S  s)
inline

Multiplication of scalar and a default constructed Operator.

Constructor constructing an ScalarMultiplication from a scalar alone.

Parameters
sThe scalar to be multiplied.

Member Function Documentation

◆ outputOrder()

template<typename S , typename O , std::enable_if_t< are_scalar_multiplication_types_v< S, O >, bool > = true>
static constexpr size_t bspline::operators::ScalarMultiplication< S, O, >::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 S , typename O , std::enable_if_t< are_scalar_multiplication_types_v< S, O >, bool > = true>
template<typename T , size_t size>
auto bspline::operators::ScalarMultiplication< S, O, >::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 spline.
sizeThe size of the 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: