Mercurial > hg > octave-nkf
annotate liboctave/DASPK.h @ 10312:cbc402e64d83
untabify liboctave header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:14:48 -0500 |
parents | 4c0cdbe0acca |
children | 4638800cd660 |
rev | line source |
---|---|
3912 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1996, 1997, 2002, 2003, 2004, 2005, 2006, 2007 |
4 John W. Eaton | |
3912 | 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. | |
3912 | 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/>. | |
3912 | 21 |
22 */ | |
23 | |
24 #if !defined (octave_DASPK_h) | |
25 #define octave_DASPK_h 1 | |
26 | |
27 #include <cfloat> | |
28 | |
3998 | 29 #include "DASPK-opts.h" |
7231 | 30 #include "lo-math.h" |
3912 | 31 |
32 class | |
6108 | 33 OCTAVE_API |
3912 | 34 DASPK : public DAE, public DASPK_options |
35 { | |
36 public: | |
37 | |
4049 | 38 DASPK (void) : DAE (), DASPK_options (), initialized (false) { } |
3912 | 39 |
4587 | 40 DASPK (const ColumnVector& s, double tm, DAEFunc& f) |
41 : DAE (s, tm, f), DASPK_options (), initialized (false) { } | |
3912 | 42 |
4587 | 43 DASPK (const ColumnVector& s, const ColumnVector& deriv, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
44 double tm, DAEFunc& f) |
4587 | 45 : DAE (s, deriv, tm, f), DASPK_options (), initialized (false) { } |
3912 | 46 |
47 ~DASPK (void) { } | |
48 | |
49 ColumnVector do_integrate (double t); | |
50 | |
51 Matrix do_integrate (const ColumnVector& tout); | |
52 | |
53 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); | |
54 | |
55 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out); | |
56 | |
57 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out, | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
58 const ColumnVector& tcrit); |
3912 | 59 |
3995 | 60 std::string error_message (void) const; |
61 | |
3912 | 62 private: |
63 | |
4049 | 64 bool initialized; |
65 | |
5275 | 66 octave_idx_type liw; |
67 octave_idx_type lrw; | |
4049 | 68 |
5275 | 69 Array<octave_idx_type> info; |
70 Array<octave_idx_type> iwork; | |
4049 | 71 |
3912 | 72 Array<double> rwork; |
73 | |
4049 | 74 Array<double> abs_tol; |
75 Array<double> rel_tol; | |
3912 | 76 |
4049 | 77 double *px; |
78 double *pxdot; | |
79 double *pabs_tol; | |
80 double *prel_tol; | |
5275 | 81 octave_idx_type *pinfo; |
82 octave_idx_type *piwork; | |
4049 | 83 double *prwork; |
3912 | 84 }; |
85 | |
86 #endif |