Mercurial > hg > octave-lyh
annotate liboctave/DASSL.h @ 11188:4cb1522e4d0f
Use function handle as input to cellfun,
rather than quoted function name or anonymous function wrapper.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 03 Nov 2010 17:20:56 -0700 |
parents | cbc402e64d83 |
children | 4638800cd660 |
rev | line source |
---|---|
1841 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1996, 1997, 2000, 2002, 2003, 2004, 2005, 2006, 2007 |
4 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_DASSL_h) | |
25 #define octave_DASSL_h 1 | |
26 | |
1871 | 27 #include <cfloat> |
1868 | 28 |
3998 | 29 #include "DASSL-opts.h" |
7231 | 30 #include "lo-math.h" |
1841 | 31 |
1868 | 32 class |
6108 | 33 OCTAVE_API |
1868 | 34 DASSL : public DAE, public DASSL_options |
1841 | 35 { |
36 public: | |
37 | |
4049 | 38 DASSL (void) : DAE (), DASSL_options (), initialized (false) { } |
1841 | 39 |
4587 | 40 DASSL (const ColumnVector& s, double tm, DAEFunc& f) |
41 : DAE (s, tm, f), DASSL_options (), initialized (false) { } | |
1841 | 42 |
4587 | 43 DASSL (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), DASSL_options (), initialized (false) { } |
1841 | 46 |
1945 | 47 ~DASSL (void) { } |
1841 | 48 |
49 ColumnVector do_integrate (double t); | |
50 | |
51 Matrix do_integrate (const ColumnVector& tout); | |
52 | |
3519 | 53 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
54 | |
1841 | 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); |
1841 | 59 |
3995 | 60 std::string error_message (void) const; |
61 | |
1841 | 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 |
1945 | 72 Array<double> rwork; |
1841 | 73 |
4049 | 74 Array<double> abs_tol; |
75 Array<double> rel_tol; | |
1841 | 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; |
1841 | 84 }; |
85 | |
86 #endif |