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