3912
|
1 /* |
|
2 |
|
3 Copyright (C) 1996, 1997, 2002 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 2, or (at your option) any |
|
10 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, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_DASPK_h) |
|
24 #define octave_DASPK_h 1 |
|
25 |
|
26 #include <cfloat> |
|
27 #include <cmath> |
|
28 |
3998
|
29 #include "DASPK-opts.h" |
3912
|
30 |
|
31 class |
|
32 DASPK : public DAE, public DASPK_options |
|
33 { |
|
34 public: |
|
35 |
4049
|
36 DASPK (void) : DAE (), DASPK_options (), initialized (false) { } |
3912
|
37 |
4587
|
38 DASPK (const ColumnVector& s, double tm, DAEFunc& f) |
|
39 : DAE (s, tm, f), DASPK_options (), initialized (false) { } |
3912
|
40 |
4587
|
41 DASPK (const ColumnVector& s, const ColumnVector& deriv, |
|
42 double tm, DAEFunc& f) |
|
43 : DAE (s, deriv, tm, f), DASPK_options (), initialized (false) { } |
3912
|
44 |
|
45 ~DASPK (void) { } |
|
46 |
|
47 ColumnVector do_integrate (double t); |
|
48 |
|
49 Matrix do_integrate (const ColumnVector& tout); |
|
50 |
|
51 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
|
52 |
|
53 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out); |
|
54 |
|
55 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out, |
|
56 const ColumnVector& tcrit); |
|
57 |
3995
|
58 std::string error_message (void) const; |
|
59 |
3912
|
60 private: |
|
61 |
4049
|
62 bool initialized; |
|
63 |
3912
|
64 int liw; |
|
65 int lrw; |
4049
|
66 |
3912
|
67 Array<int> info; |
|
68 Array<int> iwork; |
4049
|
69 |
3912
|
70 Array<double> rwork; |
|
71 |
4049
|
72 Array<double> abs_tol; |
|
73 Array<double> rel_tol; |
3912
|
74 |
4049
|
75 double *px; |
|
76 double *pxdot; |
|
77 double *pabs_tol; |
|
78 double *prel_tol; |
|
79 int *pinfo; |
|
80 int *piwork; |
|
81 double *prwork; |
3912
|
82 }; |
|
83 |
|
84 #endif |
|
85 |
|
86 /* |
|
87 ;;; Local Variables: *** |
|
88 ;;; mode: C++ *** |
|
89 ;;; End: *** |
|
90 */ |