commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdigg...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/analysis PolynomialFunction.java BrentSolver.java SecantSolver.java NewtonSolver.java BisectionSolver.java UnivariateRealSolverImpl.java PolynomialSplineFunction.java
Date Wed, 02 Jun 2004 00:11:08 GMT
mdiggory    2004/06/01 17:11:08

  Modified:    math/src/java/org/apache/commons/math/analysis
                        PolynomialFunction.java BrentSolver.java
                        SecantSolver.java NewtonSolver.java
                        BisectionSolver.java UnivariateRealSolverImpl.java
                        PolynomialSplineFunction.java
  Log:
  Adding serialversionUID to control versioning and allow for implementations that would like
to maintain serialization.
  
  Revision  Changes    Path
  1.10      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/analysis/PolynomialFunction.java
  
  Index: PolynomialFunction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/PolynomialFunction.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PolynomialFunction.java	27 Apr 2004 04:37:58 -0000	1.9
  +++ PolynomialFunction.java	2 Jun 2004 00:11:08 -0000	1.10
  @@ -27,6 +27,9 @@
    */
   public class PolynomialFunction implements DifferentiableUnivariateRealFunction, Serializable
{
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 3322454535052136809L;
  +    
       /**
        * The coefficients of the polynomial, ordered by degree -- i.e.,  coefficients[0]
is the constant term
        * and coefficients[n] is the coefficient of x^n where n is the degree of the polynomial.
  
  
  
  1.15      +5 -1      jakarta-commons/math/src/java/org/apache/commons/math/analysis/BrentSolver.java
  
  Index: BrentSolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/BrentSolver.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- BrentSolver.java	27 Apr 2004 04:37:58 -0000	1.14
  +++ BrentSolver.java	2 Jun 2004 00:11:08 -0000	1.15
  @@ -28,6 +28,10 @@
    * @version $Revision$ $Date$
    */
   public class BrentSolver extends UnivariateRealSolverImpl implements Serializable {
  +    
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 3350616277306882875L;
  +
       /**
        * Construct a solver for the given function.
        * @param f function to solve.
  
  
  
  1.15      +5 -1      jakarta-commons/math/src/java/org/apache/commons/math/analysis/SecantSolver.java
  
  Index: SecantSolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/SecantSolver.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SecantSolver.java	27 Apr 2004 04:37:58 -0000	1.14
  +++ SecantSolver.java	2 Jun 2004 00:11:08 -0000	1.15
  @@ -34,6 +34,10 @@
    * @version $Revision$ $Date$
    */
   public class SecantSolver extends UnivariateRealSolverImpl implements Serializable {
  +    
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 1984971194738974867L;
  +    
       /**
        * Construct a solver for the given function.
        * @param f function to solve.
  
  
  
  1.4       +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/analysis/NewtonSolver.java
  
  Index: NewtonSolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/NewtonSolver.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NewtonSolver.java	27 Apr 2004 04:37:58 -0000	1.3
  +++ NewtonSolver.java	2 Jun 2004 00:11:08 -0000	1.4
  @@ -30,6 +30,9 @@
    */
   public class NewtonSolver extends UnivariateRealSolverImpl implements Serializable {
       
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 2606474895443431607L;
  +    
       /** The first derivative of the target function. */
       private UnivariateRealFunction derivative;
       
  
  
  
  1.16      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/analysis/BisectionSolver.java
  
  Index: BisectionSolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/BisectionSolver.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- BisectionSolver.java	27 Apr 2004 16:42:33 -0000	1.15
  +++ BisectionSolver.java	2 Jun 2004 00:11:08 -0000	1.16
  @@ -27,6 +27,9 @@
    */
   public class BisectionSolver extends UnivariateRealSolverImpl implements Serializable {
       
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 7137520585963699578L;
  +    
       /**
        * Construct a solver for the given function.
        * @param f function to solve.
  
  
  
  1.13      +4 -3      jakarta-commons/math/src/java/org/apache/commons/math/analysis/UnivariateRealSolverImpl.java
  
  Index: UnivariateRealSolverImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/UnivariateRealSolverImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- UnivariateRealSolverImpl.java	27 Apr 2004 16:42:33 -0000	1.12
  +++ UnivariateRealSolverImpl.java	2 Jun 2004 00:11:08 -0000	1.13
  @@ -26,9 +26,10 @@
    *  
    * @version $Revision$ $Date$
    */
  -public abstract class UnivariateRealSolverImpl
  -    implements UnivariateRealSolver, Serializable {
  +public abstract class UnivariateRealSolverImpl implements UnivariateRealSolver, Serializable
{
   
  +    static final long serialVersionUID = 1112491292565386596L;
  +    
       /** Maximum absolute error. */
       protected double absoluteAccuracy;
   
  
  
  
  1.5       +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/analysis/PolynomialSplineFunction.java
  
  Index: PolynomialSplineFunction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/analysis/PolynomialSplineFunction.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PolynomialSplineFunction.java	27 Apr 2004 04:37:58 -0000	1.4
  +++ PolynomialSplineFunction.java	2 Jun 2004 00:11:08 -0000	1.5
  @@ -45,6 +45,9 @@
    */
   public class PolynomialSplineFunction implements UnivariateRealFunction, Serializable {
      
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = 7011031166416885789L;
  +    
       /** Spline segment interval delimiters (knots).   Size is n+1 for n segments. */
       private double knots[];
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message