|
Theoretica
Mathematical Library
|
Data structure holding the numerical solution of a discretized ODE, where the vector \(\vec t\) represents the discrete time points (independent variable) and the vector \(\vec x\) the discrete solution. More...
#include <ode.h>
Public Member Functions | |
| ode_solution_t () | |
| Default constructor. | |
| ode_solution_t (size_t steps, const Vector &x0, real t0) | |
| Prepare the structure for integration by specifying the number of total steps and the initial conditions and time. | |
| std::string | to_string (const std::string &separator=" ") const |
| Convert the ODE solution to string representation. | |
| operator std::string () | |
| Convert the ODE solution to string representation. | |
Public Attributes | |
| vec< real > | t |
| A vector of the time values (independent variable). | |
| vec< Vector > | x |
| A vector of the phase space values (solution). | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ode_solution_t< Vector > &obj) |
| Stream the ODE solution in string representation to an output stream (std::ostream) | |
Data structure holding the numerical solution of a discretized ODE, where the vector \(\vec t\) represents the discrete time points (independent variable) and the vector \(\vec x\) the discrete solution.