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
DASSL.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2015 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_DASSL_h)
24 #define octave_DASSL_h 1
25 
26 #include <cfloat>
27 
28 #include "DASSL-opts.h"
29 #include "lo-math.h"
30 
31 class
32 OCTAVE_API
33 DASSL : public DAE, public DASSL_options
34 {
35 public:
36 
37  DASSL (void)
38  : DAE (), DASSL_options (), initialized (false), liw (0), lrw (0),
39  info (), iwork (), rwork (), abs_tol (), rel_tol () { }
40 
41  DASSL (const ColumnVector& s, double tm, DAEFunc& f)
42  : DAE (s, tm, f), DASSL_options (), initialized (false), liw (0),
43  lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { }
44 
45  DASSL (const ColumnVector& s, const ColumnVector& deriv,
46  double tm, DAEFunc& f)
47  : DAE (s, deriv, tm, f), DASSL_options (), initialized (false),
48  liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (),
49  rel_tol () { }
50 
51  ~DASSL (void) { }
52 
53  ColumnVector do_integrate (double t);
54 
55  Matrix do_integrate (const ColumnVector& tout);
56 
57  Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit);
58 
59  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out);
60 
61  Matrix integrate (const ColumnVector& tout, Matrix& xdot_out,
62  const ColumnVector& tcrit);
63 
64  std::string error_message (void) const;
65 
66 private:
67 
69 
72 
75 
77 
80 };
81 
82 #endif
~DASSL(void)
Definition: DASSL.h:51
bool initialized
Definition: DASSL.h:68
Definition: DASSL.h:31
octave_idx_type liw
Definition: DASSL.h:70
DASSL(const ColumnVector &s, const ColumnVector &deriv, double tm, DAEFunc &f)
Definition: DASSL.h:45
DASSL(void)
Definition: DASSL.h:37
F77_RET_T const double const double * f
Array< double > rel_tol
Definition: DASSL.h:79
Definition: dMatrix.h:35
Array< double > abs_tol
Definition: DASSL.h:78
DASSL(const ColumnVector &s, double tm, DAEFunc &f)
Definition: DASSL.h:41
octave_idx_type lrw
Definition: DASSL.h:71
Definition: DAE.h:29
Array< double > rwork
Definition: DASSL.h:76
Array< octave_idx_type > iwork
Definition: DASSL.h:74
Array< octave_idx_type > info
Definition: DASSL.h:73