1841
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, |
|
4 2006, 2007 John W. Eaton |
1841
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
1841
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
1841
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_LSODE_h) |
|
25 #define octave_LSODE_h 1 |
|
26 |
1872
|
27 #include <cfloat> |
1867
|
28 |
3998
|
29 #include "LSODE-opts.h" |
7231
|
30 #include "lo-math.h" |
1841
|
31 |
1867
|
32 class |
6108
|
33 OCTAVE_API |
1867
|
34 LSODE : public ODE, public LSODE_options |
1841
|
35 { |
|
36 public: |
|
37 |
4049
|
38 LSODE (void) : ODE (), LSODE_options (), initialized (false) { } |
1841
|
39 |
4587
|
40 LSODE (const ColumnVector& s, double tm, const ODEFunc& f) |
|
41 : ODE (s, tm, f), LSODE_options (), initialized (false) { } |
1841
|
42 |
1945
|
43 ~LSODE (void) { } |
1841
|
44 |
|
45 ColumnVector do_integrate (double t); |
|
46 |
|
47 Matrix do_integrate (const ColumnVector& tout); |
|
48 |
3511
|
49 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
1841
|
50 |
3959
|
51 std::string error_message (void) const; |
|
52 |
1841
|
53 private: |
|
54 |
4049
|
55 bool initialized; |
|
56 |
5275
|
57 octave_idx_type method_flag; |
|
58 octave_idx_type maxord; |
|
59 octave_idx_type itask; |
|
60 octave_idx_type iopt; |
|
61 octave_idx_type itol; |
4049
|
62 |
5275
|
63 octave_idx_type liw; |
|
64 octave_idx_type lrw; |
4049
|
65 |
5275
|
66 Array<octave_idx_type> iwork; |
4049
|
67 Array<double> rwork; |
|
68 |
|
69 double rel_tol; |
1841
|
70 |
4049
|
71 Array<double> abs_tol; |
1841
|
72 |
4049
|
73 double *px; |
|
74 double *pabs_tol; |
5275
|
75 octave_idx_type *piwork; |
4049
|
76 double *prwork; |
1841
|
77 }; |
|
78 |
|
79 #endif |
|
80 |
|
81 /* |
|
82 ;;; Local Variables: *** |
|
83 ;;; mode: C++ *** |
|
84 ;;; End: *** |
|
85 */ |