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 |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
3984
|
21 |
|
22 */ |
|
23 |
|
24 #ifdef HAVE_CONFIG_H |
|
25 #include <config.h> |
|
26 #endif |
|
27 |
|
28 #include "ODES.h" |
|
29 #include "lo-error.h" |
|
30 |
|
31 void |
4277
|
32 ODES::initialize (const ColumnVector& xx, double tt) |
3984
|
33 { |
4277
|
34 base_diff_eqn::initialize (xx, tt); |
3984
|
35 xdot = ColumnVector (xx.length (), 0.0); |
|
36 } |
|
37 |
|
38 void |
4277
|
39 ODES::initialize (const ColumnVector& xx, double tt, |
3984
|
40 const ColumnVector& xtheta) |
|
41 { |
4277
|
42 base_diff_eqn::initialize (xx, tt); |
3984
|
43 xdot = ColumnVector (xx.length (), 0.0); |
|
44 theta = xtheta; |
|
45 } |
|
46 |
|
47 /* |
|
48 ;;; Local Variables: *** |
|
49 ;;; mode: C++ *** |
|
50 ;;; End: *** |
|
51 */ |