|
| FixedParametricIterativeEulerMethod (Function< A, arma::Col< B >> &dydt, A const &t0, arma::Col< B > const &y0, arma::Col< A > const &ta, arma::Mat< B > const &ya, size_t const i=0) |
| FixedParametricIterativeEulerMethod default constructor. More...
|
|
arma::Col< B > | eval (A const &h) override |
| Compute the parametric iterative Euler method but considering given fixed frontiers. More...
|
|
void | restart () override |
|
size_t | getCurrentPieceIndex () const |
| Obtain the index identifying the current piece. More...
|
|
void | setCurrentPieceIndex (size_t const i) |
| Set the index identifying the current piece. More...
|
|
| ParametricIterativeEulerMethod (Function< A, arma::Col< B >> &dydt, A const &t0, arma::Col< B > const &y0) |
| ParametricIterativeEulerMethod default constructor. More...
|
|
arma::Col< B > | eval (A const &h) override |
| Iteratively compute the next value using Euler method. More...
|
|
Function< A, B > const & | getDydt () const |
|
A | getT () const |
|
void | setT (A const t) |
|
A | getT0 () const |
|
arma::Col< B > | getY () const |
|
void | setY (arma::Col< B > const y) |
|
arma::Col< B > | getY0 () const |
|
| Function ()=default |
|
arma::Col< B > | operator() (A const &x) |
| Evaluate the function \(f(x)=y\). More...
|
|
|
arma::Col< A > const & | ta |
| The \(m\) frontiers such that \(\forall t,\, \exists i \ni t \in [a_i, a_{i+1})\). For the last frontier, the interval is \([a_{m}, \infty)\).
|
|
arma::Mat< B > const & | ya |
| The value of \(\vec{y}(t_i)\) at each of the \(m\) frontiers such that \(\forall i,\, \vec{y_i} = \left(y_{i1}, \ldots, y_{in}\right)\).
|
|
size_t | i |
| The index of the current piece. More...
|
|
Function< A, arma::Col< B > > & | dydt |
| Reference to the parametric derivative function. More...
|
|
A | t0 |
| The initial value of \(t\), \(t_0\). More...
|
|
A | t |
| The current value of \(t\). More...
|
|
arma::Col< B > | y0 |
| The initial value of \(\vec{y}\), \(\vec{y}(t_0)\). More...
|
|
arma::Col< B > | y |
| The current value of \(\vec{y}(t)\). More...
|
|
template<typename A, typename B>
class fluxionum::FixedParametricIterativeEulerMethod< A, B >
Fixed parametric iterative Euler method.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
It is like the ParametricIterativeEulerMethod, but the values at the frontiers are given and thus can be used to fix/correct the function value at those points. This helps preserving the stability of the approximation, specially for those cases which have a significant number of frontiers
- See also
- fluxionum::ParametricIterativeEulerMethod
-
fluxionum::FixedIterativeEulerMethod
-
fluxionum::Function