Theoretica
A C++ numerical and automatic mathematical library
theoretica::ode::ode_solution_t< Vector > Class Template Reference

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

Detailed Description

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

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.


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