A class for interpolating a function using splines in polar coordinates.
More...
|
using | evaluator_type = ddc::SplineEvaluator2D< Kokkos::DefaultHostExecutionSpace, Kokkos::HostSpace, BSplinesR, BSplinesTheta, GridR, GridTheta, RadialExtrapolationRule, RadialExtrapolationRule, ddc::PeriodicExtrapolationRule< Theta >, ddc::PeriodicExtrapolationRule< Theta >, GridR, GridTheta > |
| The type of the 2D Spline Evaluator used by this class.
|
|
|
| SplineInterpolatorRTheta (SplineRThetaBuilder const &builder, evaluator_type const &evaluator) |
| Create a spline interpolator object. More...
|
|
host_t< DFieldRTheta > | operator() (host_t< DFieldRTheta > const inout_data, host_t< Field< CoordRTheta const, IdxRangeRTheta >> const coordinates) const override |
| Approximate the value of a function at a set of polar coordinates using the current values at a known set of interpolation points. More...
|
|
virtual host_t< DFieldRTheta > | operator() (host_t< DFieldRTheta > inout_data, host_t< ConstFieldRTheta< CoordRTheta >> coordinates) const =0 |
| Approximate the value of a function at a set of coordinates using the current values at a known set of interpolation points. More...
|
|
template<class RadialExtrapolationRule>
class SplineInterpolatorRTheta< RadialExtrapolationRule >
A class for interpolating a function using splines in polar coordinates.
- Template Parameters
-
RadialExtrapolationRule | The extrapolation rule applied at the outer radial bound. |
◆ SplineInterpolatorRTheta()
template<class RadialExtrapolationRule >
Create a spline interpolator object.
- Parameters
-
[in] | builder | An operator which builds spline coefficients from the values of a function at known interpolation points. |
[in] | evaluator | An operator which evaluates the value of a spline at requested coordinates. |
◆ operator()()
template<class RadialExtrapolationRule >
host_t<DFieldRTheta> SplineInterpolatorRTheta< RadialExtrapolationRule >::operator() |
( |
host_t< DFieldRTheta > const |
inout_data, |
|
|
host_t< Field< CoordRTheta const, IdxRangeRTheta >> const |
coordinates |
|
) |
| const |
|
inlineoverride |
Approximate the value of a function at a set of polar coordinates using the current values at a known set of interpolation points.
- Parameters
-
[in,out] | inout_data | On input: an array containing the value of the function at the interpolation points. On output: an array containing the value of the function at the coordinates. |
[in] | coordinates | The polar coordinates where the function should be evaluated. |
- Returns
- A reference to the inout_data array containing the value of the function at the coordinates.
The documentation for this class was generated from the following file: