BSplinebasis
|
Integration routines for Splines. More...
Classes | |
class | BilinearForm |
A bilinear form with user-provided operators. More... | |
class | LinearForm |
A linear form with a user-provided operator. More... | |
Typedefs | |
using | ScalarProduct = BilinearForm< operators::IdentityOperator, operators::IdentityOperator > |
Functions | |
template<typename O2 > | |
BilinearForm (O2 o2) -> BilinearForm< operators::IdentityOperator, O2 > | |
Deduction guide for matrix element. | |
BilinearForm () -> BilinearForm< operators::IdentityOperator, operators::IdentityOperator > | |
Deduction guide for scalar product. | |
LinearForm () -> LinearForm< operators::IdentityOperator > | |
Deduction guide for an integral over a Spline. | |
template<size_t ordergl, typename T , typename F , size_t order1, size_t order2> | |
T | integrate (const F &f, const bspline::Spline< T, order1 > &m1, const bspline::Spline< T, order2 > &m2) |
Calculates matrix element of user-provided function. | |
Integration routines for Splines.
Nampespace containing the integration routines. Analytical integration is represented by the linear and bilinear forms. There is also code for numerical integration using the boost fixed poind Gauss-Legendre scheme.
using bspline::integration::ScalarProduct = typedef BilinearForm<operators::IdentityOperator, operators::IdentityOperator> |
Short hand for a scalar product
bspline::integration::BilinearForm | ( | ) | -> BilinearForm< operators::IdentityOperator, operators::IdentityOperator > |
Deduction guide for scalar product.
Deduction guide for a bilinear form which corresponds to the scalar product.
Deduction guide for matrix element.
Deduction guide for a bilinear form which corresponds to the matrix element of the operator
.
O2 | Type of the operator applied to the second spline. |
T bspline::integration::integrate | ( | const F & | f, |
const bspline::Spline< T, order1 > & | m1, | ||
const bspline::Spline< T, order2 > & | m2 | ||
) |
Calculates matrix element of user-provided function.
Calculates the 1D integral
The integral is evaluated numerically on each interval using boost's Gauss-Legendre scheme of order ordergl.
f | Callable ![]() |
m1 | First spline ![]() |
m2 | Second spline ![]() |
ordergl | Order of the Gauss-Legendre integration scheme provided by the boost library. |
T | Datatype of the calculation. |
F | Type of the callable ![]() |
order1 | Order of the spline ![]() |
order2 | Order of the spline ![]() |
BSplineException | If the two splines are defined on different grids. |
Deduction guide for an integral over a Spline.
Deduction guide for a linear form which represents the integral over the spline