Mercurial > hg > octave-nkf
changeset 302:676b70238e68
[project @ 1994-01-18 05:38:48 by jwe]
author | jwe |
---|---|
date | Tue, 18 Jan 1994 05:40:29 +0000 |
parents | 707bd95636cf |
children | 20c1412d7924 |
files | liboctave/DAE.h liboctave/DASSL.cc |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/DAE.h +++ b/liboctave/DAE.h @@ -40,16 +40,16 @@ DAE (int); - DAE (Vector& x, double time, DAEFunc& f); + DAE (const Vector& x, double time, DAEFunc& f); - DAE (Vector& x, Vector& xdot, double time, DAEFunc& f); + DAE (const Vector& x, const Vector& xdot, double time, DAEFunc& f); ~DAE (void); Vector deriv (void); - virtual void initialize (Vector& x, double t); - virtual void initialize (Vector& x, Vector& xdot, double t); + virtual void initialize (const Vector& x, double t); + virtual void initialize (const Vector& x, Vector& xdot, double t); Vector integrate (double t);
--- a/liboctave/DASSL.cc +++ b/liboctave/DASSL.cc @@ -95,7 +95,7 @@ info [i] = 0; } -DAE::DAE (Vector& state, double time, DAEFunc& f) +DAE::DAE (const Vector& state, double time, DAEFunc& f) { n = state.capacity (); t = time; @@ -122,7 +122,7 @@ info [i] = 0; } -DAE::DAE (Vector& state, Vector& deriv, double time, DAEFunc& f) +DAE::DAE (const Vector& state, const Vector& deriv, double time, DAEFunc& f) { if (deriv.capacity () != state.capacity ()) { @@ -169,7 +169,7 @@ } void -DAE::initialize (Vector& state, double time) +DAE::initialize (const Vector& state, double time) { integration_error = 0; restart = 1; @@ -180,7 +180,7 @@ } void -DAE::initialize (Vector& state, Vector& deriv, double time) +DAE::initialize (const Vector& state, const Vector& deriv, double time) { integration_error = 0; restart = 1;