GNU Octave  3.8.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 | Private Member Functions | Private Attributes | List of all members
DASRT Class Reference

#include "DASRT.h"

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

Public Types

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)
typedef ColumnVector(* DAERTConstrFunc )(const ColumnVector &x, double t)

Public Member Functions

 DASRT (void)
 DASRT (const ColumnVector &s, double tm, DAERTFunc &f)
 DASRT (const ColumnVector &s, const ColumnVector &deriv, double tm, DAERTFunc &f)
 ~DASRT (void)
Array< doubleabsolute_tolerance (void) const
void clear_stop_time (void)
DAERTConstrFunc constraint_function (void) const
std::string error_message (void) const
virtual void force_restart (void)
DAERHSFunc function (void) const
void init (void)
double initial_step_size (void) const
void initialize (const ColumnVector &x0, double t0)
void initialize (const ColumnVector &xx, const ColumnVector &xxdot, double tt)
DASRT_result integrate (const ColumnVector &tout)
DASRT_result integrate (const ColumnVector &tout, const ColumnVector &tcrit)
bool integration_ok (void) const
octave_idx_type integration_state (void) const
DAEJacFunc jacobian_function (void) const
octave_idx_type maximum_order (void) const
double maximum_step_size (void) const
Array< doublerelative_tolerance (void) const
void set_absolute_tolerance (double val)
void set_absolute_tolerance (const Array< double > &val)
DAERTFuncset_constraint_function (DAERTConstrFunc cf)
void set_default_options (void)
DAEFuncset_function (DAERHSFunc f)
void set_initial_step_size (double val)
DAEFuncset_jacobian_function (DAEJacFunc j)
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 (double val)
void set_relative_tolerance (const Array< double > &val)
void set_step_limit (octave_idx_type val)
void set_stop_time (double tt)
octave_idx_type size (void) const
ColumnVector state (void) const
ColumnVector state_derivative (void)
octave_idx_type step_limit (void) const
double time (void) const

Protected Attributes

DAERTConstrFunc constr
DAERHSFunc fun
bool integration_error
octave_idx_type istate
DAEJacFunc jac
bool reset
bool reset
bool restart
double stop_time
bool stop_time_set
double t
ColumnVector x
ColumnVector xdot

Private Member Functions

void integrate (double t)

Private Attributes

Array< doubleabs_tol
Array< octave_idx_typeinfo
bool initialized
Array< octave_idx_typeiwork
Array< octave_idx_typejroot
octave_idx_type liw
octave_idx_type lrw
octave_idx_type ng
Array< doublerel_tol
Array< doublerwork

Detailed Description

Definition at line 69 of file DASRT.h.

Member Typedef Documentation

typedef Matrix(* DAEFunc::DAEJacFunc)(const ColumnVector &x, const ColumnVector &xdot, double t, double cj)
inherited

Definition at line 42 of file DAEFunc.h.

typedef ColumnVector(* DAEFunc::DAERHSFunc)(const ColumnVector &x, const ColumnVector &xdot, double t, octave_idx_type &ires)
inherited

Definition at line 34 of file DAEFunc.h.

typedef ColumnVector(* DAERTFunc::DAERTConstrFunc)(const ColumnVector &x, double t)
inherited

Definition at line 33 of file DAERTFunc.h.

Constructor & Destructor Documentation

DASRT::DASRT ( void  )
inline

Definition at line 75 of file DASRT.h.

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

Definition at line 81 of file DASRT.h.

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

Definition at line 87 of file DASRT.h.

DASRT::~DASRT ( void  )
inline

Definition at line 94 of file DASRT.h.

Member Function Documentation

Array<double> DASRT_options::absolute_tolerance ( void  ) const
inlineinherited

Definition at line 115 of file DASRT-opts.h.

Referenced by integrate(), print_DASRT_options(), and show_DASRT_options().

void base_diff_eqn::clear_stop_time ( void  )
inlineinherited

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

Referenced by LSODE::do_integrate(), DASPK::integrate(), DASSL::integrate(), and integrate().

DAERTConstrFunc DAERTFunc::constraint_function ( void  ) const
inlineinherited

Definition at line 66 of file DAERTFunc.h.

Referenced by integrate().

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

Implements base_diff_eqn.

Definition at line 566 of file DASRT.cc.

References base_diff_eqn::istate, and base_diff_eqn::t.

Referenced by Fdasrt().

virtual void base_diff_eqn::force_restart ( void  )
inlinevirtualinherited

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

Referenced by LSODE::do_integrate(), DASPK::integrate(), DASSL::integrate(), and integrate().

DAERHSFunc DAEFunc::function ( void  ) const
inlineinherited

Definition at line 71 of file DAEFunc.h.

Referenced by DASPK::do_integrate(), DASSL::do_integrate(), and integrate().

void DASRT_options::init ( void  )
inlineinherited

Definition at line 58 of file DASRT-opts.h.

double DASRT_options::initial_step_size ( void  ) const
inlineinherited

Definition at line 121 of file DASRT-opts.h.

Referenced by integrate(), print_DASRT_options(), and show_DASRT_options().

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

Reimplemented from base_diff_eqn.

Definition at line 58 of file base-dae.h.

References base_diff_eqn::initialize(), and Array< T >::length().

Referenced by DAERT::initialize().

void DAERT::initialize ( const ColumnVector xx,
const ColumnVector xxdot,
double  tt 
)
inlineinherited

Reimplemented from base_diff_alg_eqn.

Definition at line 61 of file DAERT.h.

References base_diff_alg_eqn::initialize().

DASRT_result DASRT::integrate ( const ColumnVector tout)
DASRT_result DASRT::integrate ( const ColumnVector tout,
const ColumnVector tcrit 
)
void DASRT::integrate ( double  t)
private
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().

DAEJacFunc DAEFunc::jacobian_function ( void  ) const
inlineinherited

Definition at line 80 of file DAEFunc.h.

Referenced by DASPK::do_integrate(), DASSL::do_integrate(), and integrate().

octave_idx_type DASRT_options::maximum_order ( void  ) const
inlineinherited

Definition at line 124 of file DASRT-opts.h.

Referenced by integrate(), print_DASRT_options(), and show_DASRT_options().

double DASRT_options::maximum_step_size ( void  ) const
inlineinherited

Definition at line 127 of file DASRT-opts.h.

Referenced by integrate(), print_DASRT_options(), and show_DASRT_options().

Array<double> DASRT_options::relative_tolerance ( void  ) const
inlineinherited

Definition at line 118 of file DASRT-opts.h.

Referenced by integrate(), print_DASRT_options(), and show_DASRT_options().

void DASRT_options::set_absolute_tolerance ( double  val)
inlineinherited

Definition at line 84 of file DASRT-opts.h.

Referenced by set_DASRT_options().

void DASRT_options::set_absolute_tolerance ( const Array< double > &  val)
inlineinherited

Definition at line 91 of file DASRT-opts.h.

DAERTFunc& DAERTFunc::set_constraint_function ( DAERTConstrFunc  cf)
inlineinherited

Definition at line 68 of file DAERTFunc.h.

Referenced by Fdasrt().

void DASRT_options::set_default_options ( void  )
inlineinherited

Definition at line 82 of file DASRT-opts.h.

DAEFunc& DAEFunc::set_function ( DAERHSFunc  f)
inlineinherited

Definition at line 73 of file DAEFunc.h.

References f.

void DASRT_options::set_initial_step_size ( double  val)
inlineinherited

Definition at line 104 of file DASRT-opts.h.

Referenced by set_DASRT_options().

DAEFunc& DAEFunc::set_jacobian_function ( DAEJacFunc  j)
inlineinherited

Definition at line 82 of file DAEFunc.h.

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

void DASRT_options::set_maximum_order ( octave_idx_type  val)
inlineinherited

Definition at line 107 of file DASRT-opts.h.

Referenced by set_DASRT_options().

void DASRT_options::set_maximum_step_size ( double  val)
inlineinherited

Definition at line 110 of file DASRT-opts.h.

Referenced by set_DASRT_options().

void DASRT_options::set_options ( const DASRT_options opt)
inlineinherited
void DASRT_options::set_relative_tolerance ( double  val)
inlineinherited

Definition at line 94 of file DASRT-opts.h.

References Array< T >::resize().

Referenced by set_DASRT_options().

void DASRT_options::set_relative_tolerance ( const Array< double > &  val)
inlineinherited

Definition at line 101 of file DASRT-opts.h.

void DASRT_options::set_step_limit ( octave_idx_type  val)
inlineinherited

Definition at line 113 of file DASRT-opts.h.

Referenced by set_DASRT_options().

void base_diff_eqn::set_stop_time ( double  tt)
inlineinherited

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

Referenced by LSODE::do_integrate(), DASPK::integrate(), DASSL::integrate(), and integrate().

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.

ColumnVector base_diff_alg_eqn::state_derivative ( void  )
inlineinherited

Definition at line 71 of file base-dae.h.

octave_idx_type DASRT_options::step_limit ( void  ) const
inlineinherited

Definition at line 130 of file DASRT-opts.h.

Referenced by integrate(), print_DASRT_options(), and show_DASRT_options().

double base_diff_eqn::time ( void  ) const
inlineinherited

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

Member Data Documentation

Array<double> DASRT::abs_tol
private

Definition at line 118 of file DASRT.h.

Referenced by integrate().

DAERTConstrFunc DAERTFunc::constr
protectedinherited

Definition at line 77 of file DAERTFunc.h.

Referenced by DAERTFunc::operator=().

DAERHSFunc DAEFunc::fun
protectedinherited

Definition at line 91 of file DAEFunc.h.

Referenced by DAEFunc::operator=().

Array<octave_idx_type> DASRT::info
private

Definition at line 112 of file DASRT.h.

Referenced by integrate().

bool DASRT::initialized
private

Definition at line 105 of file DASRT.h.

Referenced by integrate().

bool base_diff_eqn::integration_error
protectedinherited
octave_idx_type base_diff_eqn::istate
protectedinherited
Array<octave_idx_type> DASRT::iwork
private

Definition at line 113 of file DASRT.h.

Referenced by integrate().

DAEJacFunc DAEFunc::jac
protectedinherited

Definition at line 92 of file DAEFunc.h.

Referenced by DAEFunc::operator=().

Array<octave_idx_type> DASRT::jroot
private

Definition at line 114 of file DASRT.h.

Referenced by integrate().

octave_idx_type DASRT::liw
private

Definition at line 107 of file DASRT.h.

Referenced by integrate().

octave_idx_type DASRT::lrw
private

Definition at line 108 of file DASRT.h.

Referenced by integrate().

octave_idx_type DASRT::ng
private

Definition at line 110 of file DASRT.h.

Referenced by integrate().

Array<double> DASRT::rel_tol
private

Definition at line 119 of file DASRT.h.

Referenced by integrate().

bool DAERTFunc::reset
protectedinherited

Definition at line 84 of file DAERTFunc.h.

Referenced by integrate(), and DAERTFunc::operator=().

bool DASRT_options::reset
protectedinherited

Definition at line 144 of file DASRT-opts.h.

Referenced by integrate(), DASRT_options::operator=(), and DASRT_options::set_options().

bool base_diff_eqn::restart
protectedinherited
Array<double> DASRT::rwork
private

Definition at line 116 of file DASRT.h.

Referenced by integrate().

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
ColumnVector base_diff_alg_eqn::xdot
protectedinherited

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