#include <AdamsBashforth_fwd.hpp>
Class representing a step in the integration process.
This class satisfies std::forward_iterator requirements and can therefore be used with STL-type algorithms.
Definition at line 85 of file AdamsBashforth_fwd.hpp.
Inheritance diagram for mm::AdamsBashforth< Scalar, num_steps >::Integrator< func_t, initial_method_t >::IterationStep:
Collaboration diagram for mm::AdamsBashforth< Scalar, num_steps >::Integrator< func_t, initial_method_t >::IterationStep:Public Member Functions | |
| IterationStep (const Integrator &integrator) | |
| Construct an iterator at the initial values of the equation. More... | |
| IterationStep (const Integrator &integrator, int) | |
| Construct an (invalid) iterator pointing past the last step. More... | |
| IterationStep & | operator++ () |
| Advance the stepper for one time step, returning the new value. More... | |
| IterationStep | operator++ (int) |
| Advance the stepper for one time step, returning the old value. More... | |
| bool | operator== (const IterationStep &other) const |
| Compare two steppers if they are on the same step. More... | |
| bool | operator!= (const IterationStep &other) const |
| Negation of IterationStep::operator==. More... | |
| IterationStep & | operator* () |
Noop, used to conform to std::iterator requirements. More... | |
| const IterationStep & | operator* () const |
| const version of IterationStep::operator* More... | |
| operator bool () | |
Returns false if integrator went past the last step and true otherwise. More... | |
| bool | is_last () const |
| Returns true if integrator just completed its last step. More... | |
| scalar_t | time () const |
| Get current time. More... | |
| Eigen::Matrix< scalar_t, Eigen::Dynamic, steps >::ConstColXpr | value () const |
| Get current value. More... | |
| scalar_t & | time () |
| Read-write access to current time. More... | |
| Eigen::Matrix< scalar_t, Eigen::Dynamic, steps >::ColXpr | value () |
| Read-write access to current value. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const IterationStep &step) |
| Output current state of the stepper. More... | |
Private Attributes | |
| const Integrator & | integrator |
| reference to underlying integrator More... | |
| scalar_t | t |
| current time More... | |
| Eigen::Matrix< scalar_t, Eigen::Dynamic, steps > | last_ys |
| current value More... | |
| int | cur_step |
| current step More... | |
|
inlineexplicit |
Construct an iterator at the initial values of the equation.
Definition at line 99 of file AdamsBashforth_fwd.hpp.
|
inline |
Construct an (invalid) iterator pointing past the last step.
Definition at line 106 of file AdamsBashforth_fwd.hpp.
|
inline |
Returns true if integrator just completed its last step.
Definition at line 141 of file AdamsBashforth_fwd.hpp.
|
inlineexplicit |
Returns false if integrator went past the last step and true otherwise.
Definition at line 136 of file AdamsBashforth_fwd.hpp.
|
inline |
Negation of IterationStep::operator==.
Definition at line 127 of file AdamsBashforth_fwd.hpp.
|
inline |
Noop, used to conform to std::iterator requirements.
Definition at line 130 of file AdamsBashforth_fwd.hpp.
|
inline |
const version of IterationStep::operator*
Definition at line 133 of file AdamsBashforth_fwd.hpp.
| AdamsBashforth< Scalar, num_steps >::template Integrator< func_t, initial_method_t >::IterationStep & mm::AdamsBashforth< Scalar, num_steps >::Integrator< func_t, initial_method_t >::IterationStep::operator++ |
Advance the stepper for one time step, returning the new value.
Definition at line 19 of file AdamsBashforth.hpp.
|
inline |
Advance the stepper for one time step, returning the old value.
++step is preferred, due to not having a temporary variable. Definition at line 117 of file AdamsBashforth_fwd.hpp.
|
inline |
Compare two steppers if they are on the same step.
Definition at line 124 of file AdamsBashforth_fwd.hpp.
|
inline |
Read-write access to current time.
Definition at line 154 of file AdamsBashforth_fwd.hpp.
|
inline |
Get current time.
Definition at line 146 of file AdamsBashforth_fwd.hpp.
|
inline |
Read-write access to current value.
Definition at line 157 of file AdamsBashforth_fwd.hpp.
|
inline |
Get current value.
Definition at line 149 of file AdamsBashforth_fwd.hpp.
|
friend |
Output current state of the stepper.
Definition at line 162 of file AdamsBashforth_fwd.hpp.
|
private |
current step
Definition at line 95 of file AdamsBashforth_fwd.hpp.
|
private |
reference to underlying integrator
Definition at line 92 of file AdamsBashforth_fwd.hpp.
|
private |
current value
Definition at line 94 of file AdamsBashforth_fwd.hpp.
|
private |
current time
Definition at line 93 of file AdamsBashforth_fwd.hpp.