GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
ODE Class Referenceabstract

#include "ODE.h"

Inheritance diagram for ODE:
Inheritance graph
[legend]
Collaboration diagram for ODE:
Collaboration graph
[legend]

Public Types

typedef Matrix(* ODEJacFunc )(const ColumnVector &, double)
 
typedef ColumnVector(* ODERHSFunc )(const ColumnVector &, double)
 

Public Member Functions

 ODE (void)
 
 ODE (const ColumnVector &s, double tm, const ODEFunc &f)
 
 ODE (const ODE &a)
 
virtual ~ODE (void)
 
void clear_stop_time (void)
 
virtual ColumnVector do_integrate (double tt)=0
 
virtual Matrix do_integrate (const ColumnVector &tt)=0
 
virtual Matrix do_integrate (const ColumnVector &tt, const ColumnVector &ttcrit)=0
 
virtual std::string error_message (void) const =0
 
virtual void force_restart (void)
 
ODERHSFunc function (void) const
 
void initialize (const ColumnVector &x0, double t0)
 
virtual ColumnVector integrate (double tt)
 
virtual ColumnVector integrate (const ColumnVector &x0, double t0, double tt)
 
virtual Matrix integrate (const ColumnVector &tt)
 
virtual Matrix integrate (const ColumnVector &x0, double t0, const ColumnVector &tt)
 
virtual Matrix integrate (const ColumnVector &tt, const ColumnVector &ttcrit)
 
virtual Matrix integrate (const ColumnVector &x0, double t0, const ColumnVector &tt, const ColumnVector &ttcrit)
 
bool integration_ok (void) const
 
octave_idx_type integration_state (void) const
 
ODEJacFunc jacobian_function (void) const
 
ODEoperator= (const ODE &a)
 
ODEFuncset_function (ODERHSFunc f)
 
ODEFuncset_jacobian_function (ODEJacFunc j)
 
void set_stop_time (double tt)
 
octave_idx_type size (void) const
 
ColumnVector state (void) const
 
double time (void) const
 

Protected Attributes

ODERHSFunc fun
 
bool integration_error
 
octave_idx_type istate
 
ODEJacFunc jac
 
bool reset
 
bool restart
 
double stop_time
 
bool stop_time_set
 
double t
 
ColumnVector x
 

Detailed Description

Definition at line 29 of file ODE.h.

Member Typedef Documentation

typedef Matrix(* ODEFunc::ODEJacFunc)(const ColumnVector &, double)
inherited

Definition at line 35 of file ODEFunc.h.

typedef ColumnVector(* ODEFunc::ODERHSFunc)(const ColumnVector &, double)
inherited

Definition at line 34 of file ODEFunc.h.

Constructor & Destructor Documentation

ODE::ODE ( void  )
inline

Definition at line 34 of file ODE.h.

ODE::ODE ( const ColumnVector s,
double  tm,
const ODEFunc f 
)
inline

Definition at line 37 of file ODE.h.

ODE::ODE ( const ODE a)
inline

Definition at line 40 of file ODE.h.

virtual ODE::~ODE ( void  )
inlinevirtual

Definition at line 53 of file ODE.h.

Member Function Documentation

void base_diff_eqn::clear_stop_time ( void  )
inlineinherited
virtual ColumnVector ODE::do_integrate ( double  tt)
pure virtual

Implemented in LSODE.

virtual Matrix ODE::do_integrate ( const ColumnVector tt)
pure virtual

Implemented in LSODE.

virtual Matrix ODE::do_integrate ( const ColumnVector tt,
const ColumnVector ttcrit 
)
pure virtual

Implemented in LSODE.

virtual std::string base_diff_eqn::error_message ( void  ) const
pure virtualinherited

Implemented in DASRT, DASPK, DASSL, and LSODE.

virtual void base_diff_eqn::force_restart ( void  )
inlinevirtualinherited
ODERHSFunc ODEFunc::function ( void  ) const
inlineinherited

Definition at line 62 of file ODEFunc.h.

void base_diff_eqn::initialize ( const ColumnVector x0,
double  t0 
)
inlineinherited

Definition at line 66 of file base-de.h.

References x.

Referenced by base_diff_alg_eqn::initialize(), and ODES::initialize().

virtual ColumnVector ODE::integrate ( double  tt)
inlinevirtual

Definition at line 73 of file ODE.h.

Referenced by Flsode().

virtual ColumnVector ODE::integrate ( const ColumnVector x0,
double  t0,
double  tt 
)
inlinevirtual

Definition at line 77 of file ODE.h.

References initialize().

virtual Matrix ODE::integrate ( const ColumnVector tt)
inlinevirtual

Definition at line 85 of file ODE.h.

virtual Matrix ODE::integrate ( const ColumnVector x0,
double  t0,
const ColumnVector tt 
)
inlinevirtual

Definition at line 90 of file ODE.h.

References initialize().

virtual Matrix ODE::integrate ( const ColumnVector tt,
const ColumnVector ttcrit 
)
inlinevirtual

Definition at line 99 of file ODE.h.

virtual Matrix ODE::integrate ( const ColumnVector x0,
double  t0,
const ColumnVector tt,
const ColumnVector ttcrit 
)
inlinevirtual

Definition at line 105 of file ODE.h.

References initialize().

bool base_diff_eqn::integration_ok ( void  ) const
inlineinherited

Definition at line 96 of file base-de.h.

Referenced by Fdaspk(), Fdasrt(), Fdassl(), and Flsode().

octave_idx_type base_diff_eqn::integration_state ( void  ) const
inlineinherited

Definition at line 98 of file base-de.h.

Referenced by Fdaspk(), Fdasrt(), Fdassl(), and Flsode().

ODEJacFunc ODEFunc::jacobian_function ( void  ) const
inlineinherited

Definition at line 71 of file ODEFunc.h.

Referenced by LSODE::do_integrate().

ODE& ODE::operator= ( const ODE a)
inline

Definition at line 43 of file ODE.h.

References ODEFunc::operator=(), and base_diff_eqn::operator=().

ODEFunc& ODEFunc::set_function ( ODERHSFunc  f)
inlineinherited

Definition at line 64 of file ODEFunc.h.

References f.

ODEFunc& ODEFunc::set_jacobian_function ( ODEJacFunc  j)
inlineinherited

Definition at line 73 of file ODEFunc.h.

Referenced by Flsode().

void base_diff_eqn::set_stop_time ( double  tt)
inlineinherited
octave_idx_type base_diff_eqn::size ( void  ) const
inlineinherited
ColumnVector base_diff_eqn::state ( void  ) const
inlineinherited

Definition at line 77 of file base-de.h.

References x.

double base_diff_eqn::time ( void  ) const
inlineinherited

Definition at line 79 of file base-de.h.

Member Data Documentation

ODERHSFunc ODEFunc::fun
protectedinherited

Definition at line 82 of file ODEFunc.h.

Referenced by ODEFunc::operator=().

bool base_diff_eqn::integration_error
protectedinherited
octave_idx_type base_diff_eqn::istate
protectedinherited
ODEJacFunc ODEFunc::jac
protectedinherited

Definition at line 83 of file ODEFunc.h.

Referenced by LSODE::do_integrate(), and ODEFunc::operator=().

bool ODEFunc::reset
protectedinherited

Definition at line 90 of file ODEFunc.h.

Referenced by LSODE::do_integrate(), and ODEFunc::operator=().

bool base_diff_eqn::restart
protectedinherited
double base_diff_eqn::stop_time
protectedinherited
bool base_diff_eqn::stop_time_set
protectedinherited
double base_diff_eqn::t
protectedinherited
ColumnVector base_diff_eqn::x
protectedinherited

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