Mercurial > hg > octave-nkf
annotate liboctave/numeric/LSODE.h @ 19139:d5db1019ad4a
load-save.cc: Return string rather printing to octave_stdout
author | Andreas Weber <andy.weber.aw@gmail.com> |
---|---|
date | Mon, 21 Jul 2014 18:27:10 +0200 |
parents | d63878346099 |
children | 4197fc428c7d |
rev | line source |
---|---|
1841 | 1 /* |
2 | |
17744
d63878346099
maint: Update copyright notices for release.
John W. Eaton <jwe@octave.org>
parents:
15271
diff
changeset
|
3 Copyright (C) 1996-2013 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 | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
1841 | 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 | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
1841 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_LSODE_h) | |
24 #define octave_LSODE_h 1 | |
25 | |
1872 | 26 #include <cfloat> |
1867 | 27 |
3998 | 28 #include "LSODE-opts.h" |
7231 | 29 #include "lo-math.h" |
1841 | 30 |
1867 | 31 class |
6108 | 32 OCTAVE_API |
1867 | 33 LSODE : public ODE, public LSODE_options |
1841 | 34 { |
35 public: | |
36 | |
11502
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
37 LSODE (void) |
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
38 : ODE (), LSODE_options (), initialized (false), method_flag (0), |
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
39 maxord (0), itask (0), iopt (0), itol (0), liw (0), lrw (0), |
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
40 iwork (), rwork (), rel_tol (0.0), abs_tol () { } |
1841 | 41 |
4587 | 42 LSODE (const ColumnVector& s, double tm, const ODEFunc& f) |
11502
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
43 : ODE (s, tm, f), LSODE_options (), initialized (false), method_flag (0), |
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
44 maxord (0), itask (0), iopt (0), itol (0), liw (0), lrw (0), |
4638800cd660
delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
45 iwork (), rwork (), rel_tol (0.0), abs_tol () { } |
1841 | 46 |
1945 | 47 ~LSODE (void) { } |
1841 | 48 |
49 ColumnVector do_integrate (double t); | |
50 | |
51 Matrix do_integrate (const ColumnVector& tout); | |
52 | |
3511 | 53 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
1841 | 54 |
3959 | 55 std::string error_message (void) const; |
56 | |
1841 | 57 private: |
58 | |
4049 | 59 bool initialized; |
60 | |
5275 | 61 octave_idx_type method_flag; |
62 octave_idx_type maxord; | |
63 octave_idx_type itask; | |
64 octave_idx_type iopt; | |
65 octave_idx_type itol; | |
4049 | 66 |
5275 | 67 octave_idx_type liw; |
68 octave_idx_type lrw; | |
4049 | 69 |
5275 | 70 Array<octave_idx_type> iwork; |
4049 | 71 Array<double> rwork; |
72 | |
73 double rel_tol; | |
1841 | 74 |
4049 | 75 Array<double> abs_tol; |
1841 | 76 }; |
77 | |
78 #endif |