Mercurial > hg > octave-nkf
annotate liboctave/numeric/DASPK.h @ 17296:3a9efb68272d ss-3-7-6
snapshot 3.7.6
* configure.ac (OCTAVE_VERSION): Bump to 3.7.6.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Aug 2013 15:17:54 -0400 |
parents | 648dabbb4c6b |
children | d63878346099 |
rev | line source |
---|---|
3912 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
3 Copyright (C) 1996-2012 John W. Eaton |
3912 | 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. | |
3912 | 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/>. | |
3912 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_DASPK_h) | |
24 #define octave_DASPK_h 1 | |
25 | |
26 #include <cfloat> | |
27 | |
3998 | 28 #include "DASPK-opts.h" |
7231 | 29 #include "lo-math.h" |
3912 | 30 |
31 class | |
6108 | 32 OCTAVE_API |
3912 | 33 DASPK : public DAE, public DASPK_options |
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:
10312
diff
changeset
|
37 DASPK (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:
10312
diff
changeset
|
38 : DAE (), DASPK_options (), initialized (false), 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:
10312
diff
changeset
|
39 info (), iwork (), rwork (), abs_tol (), rel_tol () { } |
3912 | 40 |
4587 | 41 DASPK (const ColumnVector& s, double tm, DAEFunc& 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:
10312
diff
changeset
|
42 : DAE (s, tm, f), DASPK_options (), initialized (false), liw (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:
10312
diff
changeset
|
43 lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { } |
3912 | 44 |
4587 | 45 DASPK (const ColumnVector& s, const ColumnVector& deriv, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
46 double tm, DAEFunc& 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:
10312
diff
changeset
|
47 : DAE (s, deriv, tm, f), DASPK_options (), initialized (false), |
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:
10312
diff
changeset
|
48 liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (), |
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:
10312
diff
changeset
|
49 rel_tol () { } |
3912 | 50 |
51 ~DASPK (void) { } | |
52 | |
53 ColumnVector do_integrate (double t); | |
54 | |
55 Matrix do_integrate (const ColumnVector& tout); | |
56 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
57 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
3912 | 58 |
59 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out); | |
60 | |
61 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out, | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
62 const ColumnVector& tcrit); |
3912 | 63 |
3995 | 64 std::string error_message (void) const; |
65 | |
3912 | 66 private: |
67 | |
4049 | 68 bool initialized; |
69 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
70 octave_idx_type liw; |
5275 | 71 octave_idx_type lrw; |
4049 | 72 |
5275 | 73 Array<octave_idx_type> info; |
74 Array<octave_idx_type> iwork; | |
4049 | 75 |
3912 | 76 Array<double> rwork; |
77 | |
4049 | 78 Array<double> abs_tol; |
79 Array<double> rel_tol; | |
3912 | 80 }; |
81 | |
82 #endif |