Mercurial > hg > octave-lyh
comparison liboctave/base-dae.h @ 3995:ee0304212be0
[project @ 2002-07-17 04:32:42 by jwe]
author | jwe |
---|---|
date | Wed, 17 Jul 2002 04:32:42 +0000 |
parents | 46388d6a4e44 |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
3994:a41827ec5677 | 3995:ee0304212be0 |
---|---|
56 } | 56 } |
57 | 57 |
58 void initialize (const ColumnVector& x0, double t0) | 58 void initialize (const ColumnVector& x0, double t0) |
59 { | 59 { |
60 base_diff_eqn::initialize (x0, t0); | 60 base_diff_eqn::initialize (x0, t0); |
61 xdot.resize (x0.length (), 0.0); | 61 xdot = ColumnVector (x0.length (), 0.0); |
62 force_restart (); | |
63 } | 62 } |
64 | 63 |
65 void initialize (const ColumnVector& x0, const ColumnVector& xdot0, | 64 void initialize (const ColumnVector& x0, const ColumnVector& xdot0, |
66 double t0) | 65 double t0) |
67 { | 66 { |
68 base_diff_eqn::initialize (x0, t0); | 67 base_diff_eqn::initialize (x0, t0); |
69 xdot = xdot0; | 68 xdot = xdot0; |
70 force_restart (); | |
71 } | 69 } |
72 | 70 |
73 ColumnVector state_derivative (void) { return xdot; } | 71 ColumnVector state_derivative (void) { return xdot; } |
74 | 72 |
75 protected: | 73 protected: |