|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
Find and interpolate real numbers on a nonuniform grid. More...
#include <NonuniformGridCalculator.hh>
Public Types | |
| using | Values = Collection< real_type, Ownership::const_reference, MemSpace::native > |
| Type aliases. | |
| using | Grid = NonuniformGrid< real_type > |
Public Member Functions | |
| CELER_FUNCTION | NonuniformGridCalculator (NonuniformGridRecord const &grid, Values const &reals) |
| Construct from grid data and backend storage. | |
| CELER_FUNCTION real_type | operator() (real_type x) const |
| Calculate the y value at the given x value. | |
| CELER_FUNCTION real_type | operator[] (size_type index) const |
| Get the tabulated y value at a particular index. | |
| CELER_FUNCTION Grid const & | grid () const |
| Get the tabulated x values. | |
| CELER_FUNCTION NonuniformGridCalculator | make_inverse () const |
| Make a calculator with x and y flipped. | |
| CELER_FUNCTION bool | use_spline () const |
| Whether spline interpolation is used. | |
Static Public Member Functions | |
| static CELER_FUNCTION NonuniformGridCalculator | from_inverse (NonuniformGridRecord const &grid, Values const &reals) |
| Construct by inverting a monotonicially increasing nonuniform grid. | |
Find and interpolate real numbers on a nonuniform grid.
The end points of the grid are extrapolated outward as constant values.
|
inline |
Make a calculator with x and y flipped.