Mercurial > hg > octave-nkf
annotate liboctave/numeric/DASSL.h @ 20685:7fa1970a655d
pkg.m: drop check of nargout value, the interpreter already does that.
* scripts/pkg/pkg.m: the interpreter already checks if there was any variable
that got no value assigned, there's no need to make the code more
complicated to cover that. Also, there's no point in calling describe()
with different nargout since it doesn't check nargout.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Thu, 03 Sep 2015 16:21:08 +0100 |
parents | 4197fc428c7d |
children |
rev | line source |
---|---|
1841 | 1 /* |
2 | |
19898
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 | |
23 #if !defined (octave_DASSL_h) | |
24 #define octave_DASSL_h 1 | |
25 | |
1871 | 26 #include <cfloat> |
1868 | 27 |
3998 | 28 #include "DASSL-opts.h" |
7231 | 29 #include "lo-math.h" |
1841 | 30 |
1868 | 31 class |
6108 | 32 OCTAVE_API |
1868 | 33 DASSL : public DAE, public DASSL_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:
10312
diff
changeset
|
37 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
|
38 : 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
|
39 info (), iwork (), rwork (), abs_tol (), rel_tol () { } |
1841 | 40 |
4587 | 41 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
|
42 : 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
|
43 lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { } |
1841 | 44 |
4587 | 45 DASSL (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), 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
|
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 () { } |
1841 | 50 |
1945 | 51 ~DASSL (void) { } |
1841 | 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); |
3519 | 58 |
1841 | 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); |
1841 | 63 |
3995 | 64 std::string error_message (void) const; |
65 | |
1841 | 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 |
1945 | 76 Array<double> rwork; |
1841 | 77 |
4049 | 78 Array<double> abs_tol; |
79 Array<double> rel_tol; | |
1841 | 80 }; |
81 | |
82 #endif |