commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [07/50] [abbrv] [math] The step interpolator should refer to the integrator array.
Date Wed, 09 Dec 2015 16:16:47 GMT
The step interpolator should refer to the integrator array.

This behavior will be changed later on to get immutable objects.
For now, we still rely on arrays being shared between the integrator and
the interpolator.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/685b5ca9
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/685b5ca9
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/685b5ca9

Branch: refs/heads/MATH_3_X
Commit: 685b5ca912dcd9d823ce07f5f4a65de9aaf18b3f
Parents: e6c8448
Author: Luc Maisonobe <luc@apache.org>
Authored: Sun Nov 29 20:32:07 2015 +0100
Committer: Luc Maisonobe <luc@apache.org>
Committed: Sun Nov 29 20:32:07 2015 +0100

----------------------------------------------------------------------
 .../commons/math3/ode/sampling/AbstractFieldStepInterpolator.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/685b5ca9/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
b/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
index 6692222..b450a77 100644
--- a/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
+++ b/src/main/java/org/apache/commons/math3/ode/sampling/AbstractFieldStepInterpolator.java
@@ -79,7 +79,7 @@ public abstract class AbstractFieldStepInterpolator<T extends RealFieldElement<T
         softPreviousState   = null;
         softCurrentState    = null;
         h                   = null;
-        currentState        = y.clone();
+        currentState        = y;
         finalized           = false;
         this.forward        = isForward;
         this.mapper         = equationsMapper;


Mime
View raw message