Tatooine
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
tatooine::interpolation::cubic< Real > Struct Template Reference

#include <interpolation.h>

Inheritance diagram for tatooine::interpolation::cubic< Real >:
[legend]
Collaboration diagram for tatooine::interpolation::cubic< Real >:
[legend]

Public Types

using real_type = Real
 
using parent_type = tatooine::polynomial< Real, 3 >
 
- Public Types inherited from tatooine::polynomial< Real, 3 >
using real_type = Real
 

Public Member Functions

constexpr cubic ()=default
 
constexpr cubic (cubic const &)=default
 
constexpr cubic (cubic &&)=default
 
constexpr cubicoperator= (cubic const &)=default
 
constexpr cubicoperator= (cubic &&)=default
 
constexpr cubic (Real const t0, Real const t1, Real const ft0, Real const ft1, Real const dft0_dt, Real const dft1_dt)
 
constexpr cubic (Real const ft0, Real const ft1, Real const dft0_dt, Real const dft1_dt)
 
- Public Member Functions inherited from tatooine::polynomial< Real, 3 >
constexpr polynomial ()
 
constexpr polynomial (polynomial const &other)=default
 
constexpr polynomial (polynomial &&other) noexcept=default
 
constexpr polynomial (std::array< Real, Degree+1 > const &coeffs)
 
constexpr polynomial (polynomial< OtherReal, OtherDegree > const &other)
 
constexpr polynomial (std::array< Real, Degree+1 > &&coeffs)
 
constexpr polynomial (arithmetic auto const ... coeffs)
 
constexpr polynomial (tensor< OtherReal, Degree+1 > const &coeffs)
 
constexpr polynomial (std::array< OtherReal, Degree+1 > const &coeffs)
 
constexpr auto operator= (polynomial const &other) -> polynomial &=default
 
constexpr auto operator= (polynomial &&other) noexcept -> polynomial &=default
 
constexpr auto evaluate (arithmetic auto const x) const
 evaluates c0 * x^0 + c1 * x^1 + ... + c{N-1} * x^{N-1} More...
 
constexpr auto operator() (arithmetic auto const x) const
 evaluates c0 * x^0 + c1 * x^1 + ... + c{N-1} * x^{N-1} More...
 
auto c (std::size_t i) const -> auto const &
 
auto c (std::size_t i) -> auto &
 
auto coefficient (std::size_t i) const -> auto const &
 
auto coefficient (std::size_t i) -> auto const &
 
auto coefficients () const -> auto const &
 
auto coefficients () -> auto const &
 
constexpr auto set_coefficients (std::array< Real, Degree+1 > const &coeffs) -> void
 
constexpr auto set_coefficients (std::array< Real, Degree+1 > &&coeffs) -> void
 
constexpr auto set_coefficients (std::array< OtherReal, Degree+1 > const &coeffs) -> void
 
constexpr auto set_coefficients (arithmetic auto const ... coeffs) -> void requires(sizeof...(coeffs)==Degree+1)
 
constexpr auto diff () const
 
auto print (std::ostream &out, std::string const &x) const -> std::ostream &
 

Static Public Member Functions

static constexpr std::size_t num_dimensions ()
 
- Static Public Member Functions inherited from tatooine::polynomial< Real, 3 >
static constexpr std::size_t degree ()
 

Static Public Attributes

static constexpr std::size_t num_derivatives = 1
 

Member Typedef Documentation

◆ parent_type

template<floating_point Real>
using tatooine::interpolation::cubic< Real >::parent_type = tatooine::polynomial<Real, 3>

◆ real_type

template<floating_point Real>
using tatooine::interpolation::cubic< Real >::real_type = Real

Constructor & Destructor Documentation

◆ cubic() [1/5]

template<floating_point Real>
constexpr tatooine::interpolation::cubic< Real >::cubic ( )
constexprdefault

◆ cubic() [2/5]

template<floating_point Real>
constexpr tatooine::interpolation::cubic< Real >::cubic ( cubic< Real > const &  )
constexprdefault

◆ cubic() [3/5]

template<floating_point Real>
constexpr tatooine::interpolation::cubic< Real >::cubic ( cubic< Real > &&  )
constexprdefault

◆ cubic() [4/5]

template<floating_point Real>
constexpr tatooine::interpolation::cubic< Real >::cubic ( Real const  t0,
Real const  t1,
Real const  ft0,
Real const  ft1,
Real const  dft0_dt,
Real const  dft1_dt 
)
inlineconstexpr

◆ cubic() [5/5]

template<floating_point Real>
constexpr tatooine::interpolation::cubic< Real >::cubic ( Real const  ft0,
Real const  ft1,
Real const  dft0_dt,
Real const  dft1_dt 
)
inlineconstexpr

Member Function Documentation

◆ num_dimensions()

template<floating_point Real>
static constexpr std::size_t tatooine::interpolation::cubic< Real >::num_dimensions ( )
inlinestaticconstexpr

◆ operator=() [1/2]

template<floating_point Real>
constexpr cubic & tatooine::interpolation::cubic< Real >::operator= ( cubic< Real > &&  )
constexprdefault

◆ operator=() [2/2]

template<floating_point Real>
constexpr cubic & tatooine::interpolation::cubic< Real >::operator= ( cubic< Real > const &  )
constexprdefault

Member Data Documentation

◆ num_derivatives

template<floating_point Real>
constexpr std::size_t tatooine::interpolation::cubic< Real >::num_derivatives = 1
staticconstexpr

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