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 |
|
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. |
1841
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_LSODE_h) |
|
25 #define octave_LSODE_h 1 |
|
26 |
1872
|
27 #include <cfloat> |
1867
|
28 #include <cmath> |
|
29 |
3998
|
30 #include "LSODE-opts.h" |
1841
|
31 |
1867
|
32 class |
|
33 LSODE : public ODE, public LSODE_options |
1841
|
34 { |
|
35 public: |
|
36 |
4049
|
37 LSODE (void) : ODE (), LSODE_options (), initialized (false) { } |
1841
|
38 |
4587
|
39 LSODE (const ColumnVector& s, double tm, const ODEFunc& f) |
|
40 : ODE (s, tm, f), LSODE_options (), initialized (false) { } |
1841
|
41 |
1945
|
42 ~LSODE (void) { } |
1841
|
43 |
|
44 ColumnVector do_integrate (double t); |
|
45 |
|
46 Matrix do_integrate (const ColumnVector& tout); |
|
47 |
3511
|
48 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
1841
|
49 |
3959
|
50 std::string error_message (void) const; |
|
51 |
1841
|
52 private: |
|
53 |
4049
|
54 bool initialized; |
|
55 |
5275
|
56 octave_idx_type method_flag; |
|
57 octave_idx_type maxord; |
|
58 octave_idx_type itask; |
|
59 octave_idx_type iopt; |
|
60 octave_idx_type itol; |
4049
|
61 |
5275
|
62 octave_idx_type liw; |
|
63 octave_idx_type lrw; |
4049
|
64 |
5275
|
65 Array<octave_idx_type> iwork; |
4049
|
66 Array<double> rwork; |
|
67 |
|
68 double rel_tol; |
1841
|
69 |
4049
|
70 Array<double> abs_tol; |
1841
|
71 |
4049
|
72 double *px; |
|
73 double *pabs_tol; |
5275
|
74 octave_idx_type *piwork; |
4049
|
75 double *prwork; |
1841
|
76 }; |
|
77 |
|
78 #endif |
|
79 |
|
80 /* |
|
81 ;;; Local Variables: *** |
|
82 ;;; mode: C++ *** |
|
83 ;;; End: *** |
|
84 */ |