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