3
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 2000, 2002, 2005, 2006, |
|
4 2007 John W. Eaton |
3
|
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. |
3
|
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/>. |
3
|
21 |
|
22 */ |
|
23 |
382
|
24 #if !defined (octave_DAE_h) |
|
25 #define octave_DAE_h 1 |
|
26 |
3
|
27 #include "DAEFunc.h" |
3990
|
28 #include "base-dae.h" |
3
|
29 |
1868
|
30 class |
6108
|
31 OCTAVE_API |
3990
|
32 DAE : public base_diff_alg_eqn, public DAEFunc |
3
|
33 { |
|
34 public: |
|
35 |
1842
|
36 DAE (void) |
3990
|
37 : base_diff_alg_eqn (), DAEFunc () { } |
3
|
38 |
3509
|
39 DAE (const ColumnVector& xx, double tt, DAEFunc& f) |
3990
|
40 : base_diff_alg_eqn (xx, tt), DAEFunc (f) { } |
3
|
41 |
3509
|
42 DAE (const ColumnVector& xx, const ColumnVector& xxdot, |
3990
|
43 double tt, DAEFunc& f) |
|
44 : base_diff_alg_eqn (xx, xxdot, tt), DAEFunc (f) { } |
3
|
45 |
1842
|
46 DAE (const DAE& a) |
3990
|
47 : base_diff_alg_eqn (a), DAEFunc (a){ } |
3
|
48 |
1842
|
49 DAE& operator = (const DAE& a) |
|
50 { |
|
51 if (this != &a) |
|
52 { |
3990
|
53 base_diff_alg_eqn::operator = (a); |
1842
|
54 DAEFunc::operator = (a); |
|
55 } |
|
56 return *this; |
|
57 } |
|
58 |
|
59 ~DAE (void) { } |
3
|
60 }; |
|
61 |
|
62 #endif |