Theoretica
A C++ numerical and automatic mathematical library
|
The base type for the solution of an ODE, holding a vector \(t\) of the values of the time (independent variable) and a vector \(\vec x\) of the computed variables of the solution at each instant. 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 (dependent variable). | |
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) | |
The base type for the solution of an ODE, holding a vector \(t\) of the values of the time (independent variable) and a vector \(\vec x\) of the computed variables of the solution at each instant.