Mercurial > hg > octave-nkf
annotate liboctave/DAERT.h @ 14626:f947d2922feb stable rc-3-6-2-0
3.6.2-rc0 release candidate
* configure.ac (AC_INIT): Version is now 3.6.2-rc0.
(OCTAVE_RELEASE_DATE): Now 2012-05-11.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 May 2012 13:46:18 -0400 |
parents | 72c96de7a403 |
children |
rev | line source |
---|---|
3990 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 2002-2012 John W. Eaton |
3990 | 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. | |
3990 | 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/>. | |
3990 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_DAERT_h) | |
24 #define octave_DAERT_h 1 | |
25 | |
26 #include "DAE.h" | |
27 #include "DAERTFunc.h" | |
28 #include "base-dae.h" | |
29 | |
30 class | |
31 DAERT : public base_diff_alg_eqn, public DAERTFunc | |
32 { | |
33 public: | |
34 | |
35 DAERT (void) | |
36 : base_diff_alg_eqn (), DAERTFunc () { } | |
37 | |
4277 | 38 DAERT (const ColumnVector& xx, double tt, DAERTFunc& f) |
39 : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { } | |
3994 | 40 |
4277 | 41 DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
42 DAERTFunc& f) |
4277 | 43 : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { } |
3990 | 44 |
45 DAERT (const DAERT& a) | |
46 : base_diff_alg_eqn (a), DAERTFunc (a) { } | |
47 | |
48 DAERT& operator = (const DAERT& a) | |
49 { | |
50 if (this != &a) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
51 { |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
52 base_diff_alg_eqn::operator = (a); |
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
53 DAERTFunc::operator = (a); |
3990 | 54 |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
55 } |
3990 | 56 return *this; |
57 } | |
58 | |
11504
81ff63e43f54
really make destuctors virtual in ODE/DAE base classes
John W. Eaton <jwe@octave.org>
parents:
10312
diff
changeset
|
59 virtual ~DAERT (void) { } |
3990 | 60 |
4277 | 61 void initialize (const ColumnVector& xx, const ColumnVector& xxdot, |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
62 double tt) |
3990 | 63 { |
4277 | 64 base_diff_alg_eqn::initialize (xx, xxdot, tt); |
3990 | 65 } |
66 }; | |
67 | |
68 #endif |