Classes | Public Member Functions | Friends | List of all members
domain::FunctionsOfTime::PiecewisePolynomial< MaxDeriv > Class Template Reference

A function that has a piecewise-constant MaxDerivth derivative. More...

#include <PiecewisePolynomial.hpp>

Public Member Functions

 PiecewisePolynomial (double t, std::array< DataVector, MaxDeriv+1 > initial_func_and_derivs) noexcept
 
 PiecewisePolynomial (PiecewisePolynomial &&) noexcept=default
 
PiecewisePolynomialoperator= (PiecewisePolynomial &&) noexcept=default
 
 PiecewisePolynomial (const PiecewisePolynomial &)=default
 
PiecewisePolynomialoperator= (const PiecewisePolynomial &)=default
 
 PiecewisePolynomial (CkMigrateMessage *)
 
auto get_clone () const noexcept -> std::unique_ptr< FunctionOfTime > override
 
 WRAPPED_PUPable_decl_template (PiecewisePolynomial< MaxDeriv >)
 
std::array< DataVector, 1 > func (double t) const noexcept override
 Returns the function at an arbitrary time t.
 
std::array< DataVector, 2 > func_and_deriv (double t) const noexcept override
 Returns the function and its first derivative at an arbitrary time t.
 
std::array< DataVector, 3 > func_and_2_derivs (double t) const noexcept override
 Returns the function and the first two derivatives at an arbitrary time t.
 
void update (double time_of_update, DataVector updated_max_deriv) noexcept
 Updates the MaxDerivth derivative of the function at the given time. updated_max_deriv is a vector of the MaxDerivths for each component.
 
std::array< double, 2 > time_bounds () const noexcept override
 Returns the domain of validity of the function.
 
void pup (PUP::er &p) override
 
- Public Member Functions inherited from domain::FunctionsOfTime::FunctionOfTime
 FunctionOfTime (FunctionOfTime &&) noexcept=default
 
FunctionOfTimeoperator= (FunctionOfTime &&) noexcept=default
 
 FunctionOfTime (const FunctionOfTime &)=default
 
FunctionOfTimeoperator= (const FunctionOfTime &)=default
 
 WRAPPED_PUPable_abstract (FunctionOfTime)
 

Friends

template<size_t LocalMaxDeriv>
bool operator== (const PiecewisePolynomial< LocalMaxDeriv > &lhs, const PiecewisePolynomial< LocalMaxDeriv > &rhs) noexcept
 

Detailed Description

template<size_t MaxDeriv>
class domain::FunctionsOfTime::PiecewisePolynomial< MaxDeriv >

A function that has a piecewise-constant MaxDerivth derivative.


The documentation for this class was generated from the following files: