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

#include "DASSL.h"

Inheritance diagram for DASSL:
DAE DASSL_options base_diff_alg_eqn DAEFunc base_diff_eqn

Public Member Functions

 DASSL ()
 
 DASSL (const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
 
 DASSL (const ColumnVector &s, double tm, DAEFunc &f)
 
Matrix do_integrate (const ColumnVector &tout)
 
Matrix do_integrate (const ColumnVector &tout, const ColumnVector &tcrit)
 
ColumnVector do_integrate (double t)
 
std::string error_message () const
 
Matrix integrate (const ColumnVector &tout, Matrix &xdot_out)
 
Matrix integrate (const ColumnVector &tout, Matrix &xdot_out, const ColumnVector &tcrit)
 
- Public Member Functions inherited from DAE
 DAE ()
 
 DAE (const ColumnVector &xx, const ColumnVector &xxdot, double tt, DAEFunc &f)
 
 DAE (const ColumnVector &xx, double tt, DAEFunc &f)
 
 DAE (const DAE &a)
 
virtual ~DAE ()=default
 
DAEoperator= (const DAE &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 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 DASSL_options
 DASSL_options ()
 
 DASSL_options (const DASSL_options &opt)
 
 ~DASSL_options ()
 
Array< double > absolute_tolerance () const
 
octave_idx_type compute_consistent_initial_condition () const
 
octave_idx_type enforce_nonnegativity_constraints () const
 
void init ()
 
double initial_step_size () const
 
octave_idx_type maximum_order () const
 
double maximum_step_size () const
 
DASSL_optionsoperator= (const DASSL_options &opt)
 
Array< double > relative_tolerance () const
 
void set_absolute_tolerance (const Array< double > &val)
 
void set_absolute_tolerance (double val)
 
void set_compute_consistent_initial_condition (octave_idx_type val)
 
void set_default_options ()
 
void set_enforce_nonnegativity_constraints (octave_idx_type val)
 
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 DASSL_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 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 DAEFunc
DAERHSFunc m_fcn
 
DAEJacFunc m_jac
 
bool m_reset
 
- Protected Attributes inherited from DASSL_options
bool m_reset
 

Detailed Description

Definition at line 38 of file DASSL.h.

Constructor & Destructor Documentation

◆ DASSL() [1/3]

DASSL::DASSL ( )
inline

Definition at line 44 of file DASSL.h.

◆ DASSL() [2/3]

DASSL::DASSL ( const ColumnVector s,
double  tm,
DAEFunc f 
)
inline

Definition at line 48 of file DASSL.h.

◆ DASSL() [3/3]

DASSL::DASSL ( const ColumnVector s,
const ColumnVector deriv,
double  tm,
DAEFunc f 
)
inline

Definition at line 53 of file DASSL.h.

Member Function Documentation

◆ do_integrate() [1/3]

Matrix DASSL::do_integrate ( const ColumnVector tout)

Definition at line 347 of file DASSL.cc.

References integrate().

◆ do_integrate() [2/3]

Matrix DASSL::do_integrate ( const ColumnVector tout,
const ColumnVector tcrit 
)

Definition at line 391 of file DASSL.cc.

References integrate().

◆ do_integrate() [3/3]

◆ error_message()

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

Implements base_diff_eqn.

Definition at line 502 of file DASSL.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: