3984
|
1 /* |
|
2 |
|
3 Copyright (C) 2002 John W. Eaton |
|
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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
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 |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
4192
|
23 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) |
3984
|
24 #pragma implementation |
|
25 #endif |
|
26 |
|
27 #ifdef HAVE_CONFIG_H |
|
28 #include <config.h> |
|
29 #endif |
|
30 |
|
31 #include "ODES.h" |
|
32 #include "lo-error.h" |
|
33 |
|
34 void |
4277
|
35 ODES::initialize (const ColumnVector& xx, double tt) |
3984
|
36 { |
4277
|
37 base_diff_eqn::initialize (xx, tt); |
3984
|
38 xdot = ColumnVector (xx.length (), 0.0); |
|
39 } |
|
40 |
|
41 void |
4277
|
42 ODES::initialize (const ColumnVector& xx, double tt, |
3984
|
43 const ColumnVector& xtheta) |
|
44 { |
4277
|
45 base_diff_eqn::initialize (xx, tt); |
3984
|
46 xdot = ColumnVector (xx.length (), 0.0); |
|
47 theta = xtheta; |
|
48 } |
|
49 |
|
50 /* |
|
51 ;;; Local Variables: *** |
|
52 ;;; mode: C++ *** |
|
53 ;;; End: *** |
|
54 */ |