A class for interpolating a function using splines in polar coordinates. More...
Public Types | |
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. | |
Public Member Functions | |
SplineInterpolatorRTheta (SplineRThetaBuilder_host const &builder, evaluator_type const &evaluator) | |
Create a spline interpolator object. | |
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. | |
Public Member Functions inherited from IInterpolatorRTheta | |
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. | |
A class for interpolating a function using splines in polar coordinates.
RadialExtrapolationRule | The extrapolation rule applied at the outer radial bound. |
|
inline |
Create a spline interpolator object.
[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. |
|
inlineoverride |
Approximate the value of a function at a set of polar coordinates using the current values at a known set of interpolation points.
[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. |