Mercurial > octave
annotate liboctave/numeric/DASSL.h @ 21218:2bb4e5a6290d
don't include lo-math.h in header files unnecessarily
* DASPK.h, DASRT.h, DASSL.h, LSODE.h, Quad.h, oct-time.h: Don't
include lo-math.h.
* oct-time.cc (octave_time::octave_time (double)): Move definition
here, from oct-time.h.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 07 Feb 2016 13:19:04 -0500 |
parents | f7084eae3318 |
children | 1473547f50f5 |
rev | line source |
---|---|
1841 | 1 /* |
2 | |
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
3 Copyright (C) 1996-2015 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 | |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
23 #if ! defined (octave_DASSL_h) |
1841 | 24 #define octave_DASSL_h 1 |
25 | |
1871 | 26 #include <cfloat> |
1868 | 27 |
3998 | 28 #include "DASSL-opts.h" |
1841 | 29 |
1868 | 30 class |
6108 | 31 OCTAVE_API |
1868 | 32 DASSL : public DAE, public DASSL_options |
1841 | 33 { |
34 public: | |
35 | |
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
|
36 DASSL (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
|
37 : DAE (), DASSL_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
|
38 info (), iwork (), rwork (), abs_tol (), rel_tol () { } |
1841 | 39 |
4587 | 40 DASSL (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
|
41 : DAE (s, tm, f), DASSL_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
|
42 lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { } |
1841 | 43 |
4587 | 44 DASSL (const ColumnVector& s, const ColumnVector& deriv, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
45 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
|
46 : DAE (s, deriv, tm, f), DASSL_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
|
47 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
|
48 rel_tol () { } |
1841 | 49 |
1945 | 50 ~DASSL (void) { } |
1841 | 51 |
52 ColumnVector do_integrate (double t); | |
53 | |
54 Matrix do_integrate (const ColumnVector& tout); | |
55 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
56 Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); |
3519 | 57 |
1841 | 58 Matrix integrate (const ColumnVector& tout, Matrix& xdot_out); |
59 | |
60 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
|
61 const ColumnVector& tcrit); |
1841 | 62 |
3995 | 63 std::string error_message (void) const; |
64 | |
1841 | 65 private: |
66 | |
4049 | 67 bool initialized; |
68 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
69 octave_idx_type liw; |
5275 | 70 octave_idx_type lrw; |
4049 | 71 |
5275 | 72 Array<octave_idx_type> info; |
73 Array<octave_idx_type> iwork; | |
4049 | 74 |
1945 | 75 Array<double> rwork; |
1841 | 76 |
4049 | 77 Array<double> abs_tol; |
78 Array<double> rel_tol; | |
1841 | 79 }; |
80 | |
81 #endif |