3
|
1 // ODE.h -*- C++ -*- |
|
2 /* |
|
3 |
1842
|
4 Copyright (C) 1996 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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
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 |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
3
|
21 |
|
22 */ |
|
23 |
382
|
24 #if !defined (octave_ODE_h) |
|
25 #define octave_ODE_h 1 |
|
26 |
3
|
27 #include "ODEFunc.h" |
1842
|
28 #include "base-de.h" |
289
|
29 |
1842
|
30 class ODE : public base_diff_eqn, public ODEFunc |
3
|
31 { |
|
32 public: |
|
33 |
1842
|
34 ODE (void) |
|
35 : base_diff_eqn (), ODEFunc () { } |
3
|
36 |
1842
|
37 ODE (const ColumnVector& state, double time, const ODEFunc& f) |
|
38 : base_diff_eqn (state, time), ODEFunc (f) { } |
3
|
39 |
1842
|
40 ODE (const ODE& a) |
|
41 : base_diff_eqn (a), ODEFunc (a) { } |
3
|
42 |
1842
|
43 ODE& operator = (const ODE& a) |
|
44 { |
|
45 if (this != &a) |
|
46 { |
|
47 base_diff_eqn::operator = (a); |
|
48 ODEFunc::operator = (a); |
|
49 } |
|
50 return *this; |
|
51 } |
3
|
52 |
1842
|
53 ~ODE (void) { } |
3
|
54 }; |
|
55 |
|
56 #endif |
|
57 |
|
58 /* |
|
59 ;;; Local Variables: *** |
|
60 ;;; mode: C++ *** |
|
61 ;;; page-delimiter: "^/\\*" *** |
|
62 ;;; End: *** |
|
63 */ |