Theoretica
Mathematical Library
Loading...
Searching...
No Matches
theoretica::ode::ode_solution_t< Vector > Class Template Reference

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< realt
 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)
 

Detailed Description

template<typename Vector = vec<real>>
class theoretica::ode::ode_solution_t< Vector >

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.


The documentation for this class was generated from the following file: