numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Wrapper class to use a non-embedded formula as an embedded formula. More...
#include <num_collect/ode/non_embedded_formula_wrapper.h>
Public Types | |
using | base_formula_type = BaseFormula |
Type of formula to use in this class. | |
using | problem_type = typename base_formula_type::problem_type |
Type of problem. | |
using | scalar_type = typename problem_type::scalar_type |
Type of scalars. | |
using | variable_type = typename problem_type::variable_type |
Type of variables. | |
Public Member Functions | |
non_embedded_formula_wrapper (const problem_type &problem=problem_type()) | |
Constructor. | |
auto | problem () -> problem_type & |
Get the problem. | |
auto | problem () const -> const problem_type & |
Get the problem. | |
void | step (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate) |
Compute the next variable. | |
void | step_embedded (scalar_type time, scalar_type step_size, const variable_type ¤t, variable_type &estimate, variable_type &error) |
Compute the next variable and weak estimate of it with embedded formula. | |
Static Public Attributes | |
static constexpr index_type | lesser_order = base_formula_type::order |
Order of lesser coefficients of this formula. | |
static constexpr logging::log_tag_view | log_tag = base_formula_type::log_tag |
Log tag. | |
static constexpr index_type | order = base_formula_type::order |
Order of this formula. | |
static constexpr index_type | stages = base_formula_type::stages |
Number of stages of this formula. | |
Private Attributes | |
base_formula_type | formula_ |
Formula. | |
Wrapper class to use a non-embedded formula as an embedded formula.
BaseFormula | Type of formula to use. |
Definition at line 36 of file non_embedded_formula_wrapper.h.
using num_collect::ode::non_embedded_formula_wrapper< BaseFormula >::base_formula_type = BaseFormula |
Type of formula to use in this class.
Definition at line 39 of file non_embedded_formula_wrapper.h.
using num_collect::ode::non_embedded_formula_wrapper< BaseFormula >::problem_type = typename base_formula_type::problem_type |
Type of problem.
Definition at line 42 of file non_embedded_formula_wrapper.h.
using num_collect::ode::non_embedded_formula_wrapper< BaseFormula >::scalar_type = typename problem_type::scalar_type |
Type of scalars.
Definition at line 48 of file non_embedded_formula_wrapper.h.
using num_collect::ode::non_embedded_formula_wrapper< BaseFormula >::variable_type = typename problem_type::variable_type |
Type of variables.
Definition at line 45 of file non_embedded_formula_wrapper.h.
|
inlineexplicit |
Constructor.
[in] | problem | Problem. |
Definition at line 67 of file non_embedded_formula_wrapper.h.
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
Compute the next variable.
[in] | time | Current time. |
[in] | step_size | Step size. |
[in] | current | Current variable. |
[out] | estimate | Estimate of the next variable. |
Definition at line 79 of file non_embedded_formula_wrapper.h.
|
inline |
Compute the next variable and weak estimate of it with embedded formula.
[in] | time | Current time. |
[in] | step_size | Step size. |
[in] | current | Current variable. |
[out] | estimate | Estimate of the next variable. |
[out] | error | Estimate of error. |
Definition at line 94 of file non_embedded_formula_wrapper.h.
|
private |
Formula.
Definition at line 125 of file non_embedded_formula_wrapper.h.
|
staticconstexpr |
Order of lesser coefficients of this formula.
Definition at line 57 of file non_embedded_formula_wrapper.h.
|
staticconstexpr |
Log tag.
Definition at line 60 of file non_embedded_formula_wrapper.h.
|
staticconstexpr |
Order of this formula.
Definition at line 54 of file non_embedded_formula_wrapper.h.
|
staticconstexpr |
Number of stages of this formula.
Definition at line 51 of file non_embedded_formula_wrapper.h.