numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Base class of formulas in Rosenbrock method. More...
#include <num_collect/ode/rosenbrock/rosenbrock_formula_base.h>
Public Types | |
using | base_type = formula_base<Derived, Problem> |
Type of base class. | |
using | equation_solver_type = EquationSolver |
Type of class to solve equations in Rosenbrock methods. | |
using | problem_type |
Type of problem. | |
using | scalar_type |
Type of scalars. | |
using | variable_type |
Type of variables. | |
Public Types inherited from num_collect::ode::formula_base< Derived, Problem > | |
using | problem_type = Problem |
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 | |
rosenbrock_formula_base (const problem_type &problem, const scalar_type &inverted_jacobian_coeff) | |
Constructor. | |
auto | equation_solver () -> equation_solver_type & |
Access the solver of equations in Rosenbrock methods. | |
auto | equation_solver () const -> const equation_solver_type & |
Access the solver of equations in Rosenbrock methods. | |
auto | tolerances (const error_tolerances< variable_type > &val) -> Derived & |
Set the error tolerances. | |
Public Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
formula_base (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. | |
Protected Member Functions | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Protected Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Static Protected Member Functions | |
template<typename T > | |
static constexpr auto | coeff (T val) -> scalar_type |
Convert coefficients. | |
template<typename T1 , typename T2 > | |
static constexpr auto | coeff (T1 num, T2 den) -> scalar_type |
Create coefficients. | |
Static Protected Member Functions inherited from num_collect::ode::formula_base< Derived, Problem > | |
template<typename T > | |
static constexpr auto | coeff (T val) -> scalar_type |
Convert coefficients. | |
template<typename T1 , typename T2 > | |
static constexpr auto | coeff (T1 num, T2 den) -> scalar_type |
Create coefficients. | |
Private Attributes | |
equation_solver_type | solver_ |
Solver of equations in Rosenbrock methods. | |
Base class of formulas in Rosenbrock method.
Derived | Type of the derived class. |
Problem | Type of the problem. |
EquationSolver | Type of class to solve equations in Rosenbrock methods. |
Definition at line 39 of file rosenbrock_formula_base.h.
using num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver >::base_type = formula_base<Derived, Problem> |
Type of base class.
Definition at line 42 of file rosenbrock_formula_base.h.
using num_collect::ode::rosenbrock::rosenbrock_formula_base< Derived, Problem, EquationSolver >::equation_solver_type = EquationSolver |
Type of class to solve equations in Rosenbrock methods.
Definition at line 49 of file rosenbrock_formula_base.h.
using num_collect::ode::formula_base< Derived, Problem >::problem_type |
Type of problem.
Definition at line 36 of file formula_base.h.
using num_collect::ode::formula_base< Derived, Problem >::scalar_type |
Type of scalars.
Definition at line 42 of file formula_base.h.
using num_collect::ode::formula_base< Derived, Problem >::variable_type |
Type of variables.
Definition at line 39 of file formula_base.h.
|
inline |
Constructor.
[in] | problem | Problem. |
[in] | inverted_jacobian_coeff | Coefficient multiplied to Jacobian matrices in inverted matrices. |
Definition at line 63 of file rosenbrock_formula_base.h.
|
inlinestaticconstexprprotected |
Convert coefficients.
T | Input type. |
[in] | val | Input value. |
Definition at line 108 of file formula_base.h.
|
inlinestaticconstexprprotected |
Create coefficients.
T1 | Input type. |
T2 | Input type. |
[in] | num | Numerator. |
[in] | den | Denominator. |
Definition at line 122 of file formula_base.h.
|
inlinenodiscardprotectednoexcept |
Access derived object.
Definition at line 96 of file formula_base.h.
|
inlinenodiscardprotectednoexcept |
Access derived object.
Definition at line 87 of file formula_base.h.
|
inlinenodiscard |
Access the solver of equations in Rosenbrock methods.
Definition at line 97 of file rosenbrock_formula_base.h.
|
inlinenodiscard |
Access the solver of equations in Rosenbrock methods.
Definition at line 88 of file rosenbrock_formula_base.h.
|
inline |
Set the error tolerances.
[in] | val | Value. |
Definition at line 73 of file rosenbrock_formula_base.h.
|
private |
Solver of equations in Rosenbrock methods.
Definition at line 103 of file rosenbrock_formula_base.h.