Repository: commons-math Updated Branches: refs/heads/field-ode d3fb47063 -> f614f73de
Added forgotten copy method in FieldStepInterpolator interface. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/f614f73d Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/f614f73d Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/f614f73d Branch: refs/heads/field-ode Commit: f614f73de97cc5193c496c77be76fb315e70e531 Parents: d3fb470 Author: Luc Maisonobe <l...@apache.org> Authored: Sun Nov 15 20:51:12 2015 +0100 Committer: Luc Maisonobe <l...@apache.org> Committed: Sun Nov 15 20:51:12 2015 +0100 ---------------------------------------------------------------------- .../math3/ode/sampling/FieldStepInterpolator.java | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/f614f73d/src/main/java/org/apache/commons/math3/ode/sampling/FieldStepInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/ode/sampling/FieldStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/sampling/FieldStepInterpolator.java index 18eba45..12e4484 100644 --- a/src/main/java/org/apache/commons/math3/ode/sampling/FieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/sampling/FieldStepInterpolator.java @@ -18,6 +18,7 @@ package org.apache.commons.math3.ode.sampling; import org.apache.commons.math3.RealFieldElement; +import org.apache.commons.math3.exception.MaxCountExceededException; import org.apache.commons.math3.ode.FieldODEStateAndDerivative; /** This interface represents an interpolator over the last step @@ -73,4 +74,14 @@ public interface FieldStepInterpolator<T extends RealFieldElement<T>> { */ boolean isForward(); + /** Copy the instance. + * <p>The copied instance is guaranteed to be independent from the + * original one. Both can be used with different settings for + * interpolated time without any side effect.</p> + * @return a deep copy of the instance, which can be used independently. + * @exception MaxCountExceededException if the number of functions evaluations is exceeded + * during step finalization + */ + FieldStepInterpolator<T> copy() throws MaxCountExceededException; + }