GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
DASRT Class Reference

#include "DASRT.h"

Inheritance diagram for DASRT:
DAERT DASRT_options base_diff_alg_eqn DAERTFunc base_diff_eqn DAEFunc

Public Member Functions

 DASRT ()
 
 DASRT (const ColumnVector &s, const ColumnVector &deriv, double tm, DAERTFunc &f)
 
 DASRT (const ColumnVector &s, double tm, DAERTFunc &f)
 
std::string error_message () const
 
DASRT_result integrate (const ColumnVector &tout)
 
DASRT_result integrate (const ColumnVector &tout, const ColumnVector &tcrit)
 
- Public Member Functions inherited from DAERT
 DAERT ()
 
 DAERT (const ColumnVector &xx, const ColumnVector &xxdot, double tt, DAERTFunc &f)
 
 DAERT (const ColumnVector &xx, double tt, DAERTFunc &f)
 
 DAERT (const DAERT &a)
 
virtual ~DAERT ()=default
 
void initialize (const ColumnVector &xx, const ColumnVector &xxdot, double tt)
 
DAERToperator= (const DAERT &a)
 
- Public Member Functions inherited from base_diff_alg_eqn
 base_diff_alg_eqn ()
 
 base_diff_alg_eqn (const base_diff_alg_eqn &a)
 
 base_diff_alg_eqn (const ColumnVector &xx, const ColumnVector &xxdot, double tt)
 
 base_diff_alg_eqn (const ColumnVector &xx, double tt)
 
virtual ~base_diff_alg_eqn ()=default
 
void initialize (const ColumnVector &x0, const ColumnVector &xdot0, double t0)
 
void initialize (const ColumnVector &x0, double t0)
 
base_diff_alg_eqnoperator= (const base_diff_alg_eqn &a)
 
ColumnVector state_derivative ()
 
- Public Member Functions inherited from base_diff_eqn
 base_diff_eqn ()
 
 base_diff_eqn (const base_diff_eqn &a)
 
 base_diff_eqn (const ColumnVector &xx, double tt)
 
virtual ~base_diff_eqn ()=default
 
void clear_stop_time ()
 
virtual void force_restart ()
 
void initialize (const ColumnVector &x0, double t0)
 
bool integration_ok () const
 
octave_idx_type integration_state () const
 
base_diff_eqnoperator= (const base_diff_eqn &a)
 
void set_stop_time (double tt)
 
octave_idx_type size () const
 
ColumnVector state () const
 
double time () const
 
- Public Member Functions inherited from DAERTFunc
 DAERTFunc ()
 
 DAERTFunc (const DAERTFunc &a)
 
 DAERTFunc (DAERHSFunc f)
 
 DAERTFunc (DAERHSFunc f, DAEJacFunc j)
 
 DAERTFunc (DAERHSFunc f, DAERTConstrFunc cf)
 
 DAERTFunc (DAERHSFunc f, DAERTConstrFunc cf, DAEJacFunc j)
 
virtual ~DAERTFunc ()=default
 
DAERTConstrFunc constraint_function () const
 
DAERTFuncoperator= (const DAERTFunc &a)
 
DAERTFuncset_constraint_function (DAERTConstrFunc cf)
 
- Public Member Functions inherited from DAEFunc
 DAEFunc ()
 
 DAEFunc (const DAEFunc &a)
 
 DAEFunc (DAERHSFunc f)
 
 DAEFunc (DAERHSFunc f, DAEJacFunc j)
 
virtual ~DAEFunc ()=default
 
DAERHSFunc function () const
 
DAEJacFunc jacobian_function () const
 
DAEFuncoperator= (const DAEFunc &a)
 
DAEFuncset_function (DAERHSFunc f)
 
DAEFuncset_jacobian_function (DAEJacFunc j)
 
- Public Member Functions inherited from DASRT_options
 DASRT_options ()
 
 DASRT_options (const DASRT_options &opt)
 
 ~DASRT_options ()
 
Array< double > absolute_tolerance () const
 
void init ()
 
double initial_step_size () const
 
octave_idx_type maximum_order () const
 
double maximum_step_size () const
 
DASRT_optionsoperator= (const DASRT_options &opt)
 
Array< double > relative_tolerance () const
 
void set_absolute_tolerance (const Array< double > &val)
 
void set_absolute_tolerance (double val)
 
void set_default_options ()
 
void set_initial_step_size (double val)
 
void set_maximum_order (octave_idx_type val)
 
void set_maximum_step_size (double val)
 
void set_options (const DASRT_options &opt)
 
void set_relative_tolerance (const Array< double > &val)
 
void set_relative_tolerance (double val)
 
void set_step_limit (octave_idx_type val)
 
octave_idx_type step_limit () const
 

Additional Inherited Members

- Public Types inherited from DAERTFunc
typedef ColumnVector(* DAERTConstrFunc) (const ColumnVector &x, double t)
 
- Public Types inherited from DAEFunc
typedef Matrix(* DAEJacFunc) (const ColumnVector &x, const ColumnVector &xdot, double t, double cj)
 
typedef ColumnVector(* DAERHSFunc) (const ColumnVector &x, const ColumnVector &xdot, double t, octave_idx_type &ires)
 
- Protected Attributes inherited from base_diff_alg_eqn
ColumnVector m_xdot
 
- Protected Attributes inherited from base_diff_eqn
bool m_integration_error
 
octave_idx_type m_istate
 
bool m_restart
 
double m_stop_time
 
bool m_stop_time_set
 
double m_t
 
ColumnVector m_x
 
- Protected Attributes inherited from DAERTFunc
DAERTConstrFunc m_constr
 
bool m_reset
 
- Protected Attributes inherited from DAEFunc
DAERHSFunc m_fcn
 
DAEJacFunc m_jac
 
bool m_reset
 
- Protected Attributes inherited from DASRT_options
bool m_reset
 

Detailed Description

Definition at line 75 of file DASRT.h.

Constructor & Destructor Documentation

◆ DASRT() [1/3]

DASRT::DASRT ( )
inline

Definition at line 81 of file DASRT.h.

◆ DASRT() [2/3]

DASRT::DASRT ( const ColumnVector s,
double  tm,
DAERTFunc f 
)
inline

Definition at line 87 of file DASRT.h.

◆ DASRT() [3/3]

DASRT::DASRT ( const ColumnVector s,
const ColumnVector deriv,
double  tm,
DAERTFunc f 
)
inline

Definition at line 93 of file DASRT.h.

Member Function Documentation

◆ error_message()

std::string DASRT::error_message ( ) const
virtual

Implements base_diff_eqn.

Definition at line 554 of file DASRT.cc.

References base_diff_eqn::m_istate, and base_diff_eqn::m_t.

◆ integrate() [1/2]

◆ integrate() [2/2]


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