DDC 0.1.0
Loading...
Searching...
No Matches
ddc::KnotsAsInterpolationPoints< BSplines, BcLower, BcUpper > Class Template Reference

Helper class for the initialisation of the mesh of interpolation points. More...

#include <knots_as_interpolation_points.hpp>

Collaboration diagram for ddc::KnotsAsInterpolationPoints< BSplines, BcLower, BcUpper >:
Collaboration graph

Public Types

using interpolation_discrete_dimension_type = std::conditional_t< is_uniform_bsplines_v< BSplines >, ddc::UniformPointSampling< continuous_dimension_type >, ddc::NonUniformPointSampling< continuous_dimension_type > >
 The DDC type of the sampling for the interpolation points.
 

Static Public Member Functions

template<typename Sampling , typename U = BSplines>
static auto get_sampling ()
 Get the sampling of interpolation points.
 
template<typename Sampling >
static ddc::DiscreteDomain< Samplingget_domain ()
 Get the domain which can be used to access the interpolation points in the sampling.
 

Detailed Description

template<class BSplines, ddc::BoundCond BcLower, ddc::BoundCond BcUpper>
class ddc::KnotsAsInterpolationPoints< BSplines, BcLower, BcUpper >

Helper class for the initialisation of the mesh of interpolation points.

A helper class for the initialisation of the mesh of interpolation points. This class should be used when the interpolation points should be located at the knots of the spline. This is possible with any kind of boundary condition except Greville boundary conditions (as there will not be enough interpolation points). In the case of strongly non-uniform splines this choice may result in a less well conditioned problem, however most mathematical stability results are proven with this choice of interpolation points.

Template Parameters
BSplinesThe type of the uniform or non-uniform spline basis whose knots are used as interpolation points.
BcLowerThe lower boundary condition.
BcLowerThe upper boundary condition.

Definition at line 33 of file knots_as_interpolation_points.hpp.

Member Typedef Documentation

◆ interpolation_discrete_dimension_type

template<class BSplines , ddc::BoundCond BcLower, ddc::BoundCond BcUpper>
using ddc::KnotsAsInterpolationPoints< BSplines, BcLower, BcUpper >::interpolation_discrete_dimension_type = std::conditional_t< is_uniform_bsplines_v<BSplines>, ddc::UniformPointSampling<continuous_dimension_type>, ddc::NonUniformPointSampling<continuous_dimension_type> >

The DDC type of the sampling for the interpolation points.

Definition at line 70 of file knots_as_interpolation_points.hpp.

Member Function Documentation

◆ get_sampling()

template<class BSplines , ddc::BoundCond BcLower, ddc::BoundCond BcUpper>
template<typename Sampling , typename U = BSplines>
static auto ddc::KnotsAsInterpolationPoints< BSplines, BcLower, BcUpper >::get_sampling ( )
inlinestatic

Get the sampling of interpolation points.

Returns
sampling The DDC point sampling of the interpolation points.

Definition at line 47 of file knots_as_interpolation_points.hpp.

◆ get_domain()

Get the domain which can be used to access the interpolation points in the sampling.

Returns
domain The discrete domain which maps to the sampling of interpolation points.

Definition at line 81 of file knots_as_interpolation_points.hpp.


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