1841
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1841
|
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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
1841
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
1841
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_DASSL_h) |
|
24 #define octave_DASSL_h 1 |
|
25 |
1871
|
26 #include <cfloat> |
1868
|
27 #include <cmath> |
|
28 |
3998
|
29 #include "DASSL-opts.h" |
1841
|
30 |
1868
|
31 class |
6108
|
32 OCTAVE_API |
1868
|
33 DASSL : public DAE, public DASSL_options |
1841
|
34 { |
|
35 public: |
|
36 |
4049
|
37 DASSL (void) : DAE (), DASSL_options (), initialized (false) { } |
1841
|
38 |
4587
|
39 DASSL (const ColumnVector& s, double tm, DAEFunc& f) |
|
40 : DAE (s, tm, f), DASSL_options (), initialized (false) { } |
1841
|
41 |
4587
|
42 DASSL (const ColumnVector& s, const ColumnVector& deriv, |
|
43 double tm, DAEFunc& f) |
|
44 : DAE (s, deriv, tm, f), DASSL_options (), initialized (false) { } |
1841
|
45 |
1945
|
46 ~DASSL (void) { } |
1841
|
47 |
|
48 ColumnVector do_integrate (double t); |
|
49 |
|
50 Matrix do_integrate (const ColumnVector& tout); |
|
51 |
3519
|
52 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
|
53 |
1841
|
54 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out); |
|
55 |
|
56 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out, |
|
57 const ColumnVector& tcrit); |
|
58 |
3995
|
59 std::string error_message (void) const; |
|
60 |
1841
|
61 private: |
|
62 |
4049
|
63 bool initialized; |
|
64 |
5275
|
65 octave_idx_type liw; |
|
66 octave_idx_type lrw; |
4049
|
67 |
5275
|
68 Array<octave_idx_type> info; |
|
69 Array<octave_idx_type> iwork; |
4049
|
70 |
1945
|
71 Array<double> rwork; |
1841
|
72 |
4049
|
73 Array<double> abs_tol; |
|
74 Array<double> rel_tol; |
1841
|
75 |
4049
|
76 double *px; |
|
77 double *pxdot; |
|
78 double *pabs_tol; |
|
79 double *prel_tol; |
5275
|
80 octave_idx_type *pinfo; |
|
81 octave_idx_type *piwork; |
4049
|
82 double *prwork; |
1841
|
83 }; |
|
84 |
|
85 #endif |
|
86 |
|
87 /* |
|
88 ;;; Local Variables: *** |
|
89 ;;; mode: C++ *** |
|
90 ;;; End: *** |
|
91 */ |