Mercurial > hg > octave-nkf
annotate liboctave/numeric/DAERT.h @ 19181:0b657f4e7780 gui-release
maint: Merge stable to gui-release.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 05 Aug 2014 17:51:47 -0700 |
parents | 49a5a4be04a1 |
children | 4197fc428c7d |
rev | line source |
---|---|
3990 | 1 /* |
2 | |
17744
d63878346099
maint: Update copyright notices for release.
John W. Eaton <jwe@octave.org>
parents:
15271
diff
changeset
|
3 Copyright (C) 2002-2013 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, |
17769
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
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) | |
17769
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
49 { |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
50 if (this != &a) |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
51 { |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
52 base_diff_alg_eqn::operator = (a); |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
53 DAERTFunc::operator = (a); |
3990 | 54 |
17769
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
55 } |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
56 return *this; |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
57 } |
3990 | 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) |
17769
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
63 { |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
64 base_diff_alg_eqn::initialize (xx, xxdot, tt); |
49a5a4be04a1
maint: Use GNU style coding conventions for code in liboctave/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
65 } |
3990 | 66 }; |
67 | |
68 #endif |