Class TempLat::Spline
template <typename T>
Public Types
| Type | Name |
|---|---|
| enum | BdType |
| enum | SplineType |
Public Functions
| Type | Name |
|---|---|
| Spline () |
|
| Spline (const std::vector< T > & X, const std::vector< T > & Y, SplineType type=cspline, bool make_monotonic=false, BdType left=second_deriv, T left_value=T(0), BdType right=second_deriv, T right_value=T(0)) |
|
| DEVICE_INLINE_FUNCTION const SplineData< T > & | data () const |
| DEVICE_INLINE_FUNCTION T | deriv (int order, T x) const |
| T | deriv_host (int order, T x) const |
| T | eval_host (T x) const |
| std::vector< T > | get_x () const |
| T | get_x_max () const |
| T | get_x_min () const |
| std::vector< T > | get_y () const |
| bool | make_monotonic () |
| DEVICE_INLINE_FUNCTION T | operator() (T x) const |
| void | push () |
| void | set_boundary (BdType left, T left_value, BdType right, T right_value) |
| void | set_points (const std::vector< T > & x, const std::vector< T > & y, SplineType type=cspline) |
| std::vector< T > | solve (T y, bool ignore_extrapolation=true) const |
Public Types Documentation
enum BdType
enum SplineType
Public Functions Documentation
function Spline [1/2]
function Spline [2/2]
inline TempLat::Spline::Spline (
const std::vector< T > & X,
const std::vector< T > & Y,
SplineType type=cspline,
bool make_monotonic=false,
BdType left=second_deriv,
T left_value=T(0),
BdType right=second_deriv,
T right_value=T(0)
)
function data
function deriv
function deriv_host
function eval_host
function get_x
function get_x_max
function get_x_min
function get_y
function make_monotonic
function operator()
function push
function set_boundary
inline void TempLat::Spline::set_boundary (
BdType left,
T left_value,
BdType right,
T right_value
)
function set_points
inline void TempLat::Spline::set_points (
const std::vector< T > & x,
const std::vector< T > & y,
SplineType type=cspline
)
function solve
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/spline.h