commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r894187 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math: analysis/ComposableFunction.java linear/AbstractRealVector.java linear/OpenMapRealVector.java util/BigReal.java
Date Mon, 28 Dec 2009 15:30:04 GMT
Author: luc
Date: Mon Dec 28 15:30:03 2009
New Revision: 894187

URL: http://svn.apache.org/viewvc?rev=894187&view=rev
Log:
fixed checkstyle warnings

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/BigReal.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java?rev=894187&r1=894186&r2=894187&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/ComposableFunction.java
Mon Dec 28 15:30:03 2009
@@ -74,7 +74,7 @@
             return 1/d;
         }
     };
-    
+
     /** The {@code Math.sin} method wrapped as a {@link ComposableFunction}. */
     public static final ComposableFunction SIN = new ComposableFunction() {
         /** {@inheritDoc} */
@@ -186,7 +186,7 @@
             return Math.log10(d);
         }
     };
-    
+
     /** The {@code Math.log1p} method wrapped as a {@link ComposableFunction}. */
     public static final ComposableFunction LOG1P = new ComposableFunction () {
         public double value(double d){

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java?rev=894187&r1=894186&r2=894187&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/AbstractRealVector.java
Mon Dec 28 15:30:03 2009
@@ -383,7 +383,7 @@
             throw new IllegalArgumentException(e);
         }
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapExp() {
         return copy().mapExpToSelf();
@@ -397,12 +397,12 @@
             throw new IllegalArgumentException(e);
         }
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapExpm1() {
         return copy().mapExpm1ToSelf();
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapExpm1ToSelf() {
         try {
@@ -411,12 +411,12 @@
             throw new IllegalArgumentException(e);
         }
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapFloor() {
         return copy().mapFloorToSelf();
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapFloorToSelf() {
         try {
@@ -425,12 +425,12 @@
             throw new IllegalArgumentException(e);
         }
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapInv() {
         return copy().mapInvToSelf();
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapInvToSelf() {
         try {
@@ -486,7 +486,7 @@
     public RealVector mapMultiply(double d) {
         return copy().mapMultiplyToSelf(d);
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapMultiplyToSelf(double d){
         try {
@@ -500,7 +500,7 @@
     public RealVector mapPow(double d) {
         return copy().mapPowToSelf(d);
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapPowToSelf(double d){
         try {
@@ -584,7 +584,7 @@
     public RealVector mapSubtract(double d) {
         return copy().mapSubtractToSelf(d);
     }
-    
+
     /** {@inheritDoc} */
     public RealVector mapSubtractToSelf(double d){
         return mapAddToSelf(-d);

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java?rev=894187&r1=894186&r2=894187&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
Mon Dec 28 15:30:03 2009
@@ -69,7 +69,6 @@
      * Construct a (dimension)-length vector of zeros, specifying zero tolerance.
      * @param dimension Size of the vector
      * @param epsilon The tolerance for having a value considered zero
-     * @param defaultValue value for non-specified entries
      */
     public OpenMapRealVector(int dimension, double epsilon) {
         virtualSize = dimension;
@@ -303,7 +302,7 @@
         }
         return d;
     }
-    
+
     /** {@inheritDoc} */
     public double dotProduct(RealVector v) throws IllegalArgumentException {
         if(v instanceof OpenMapRealVector) {
@@ -608,7 +607,6 @@
         return false;
     }
 
- 
     /** {@inheritDoc} */
     public OpenMapRealVector mapAdd(double d) {
         return copy().mapAddToSelf(d);

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/BigReal.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/BigReal.java?rev=894187&r1=894186&r2=894187&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/BigReal.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/BigReal.java Mon
Dec 28 15:30:03 2009
@@ -51,7 +51,7 @@
 
     /** Rounding mode for divisions. **/
     private RoundingMode roundingMode = RoundingMode.HALF_UP;
-    
+
     /*** BigDecimal scale ***/
     private int scale = 64;
 
@@ -192,11 +192,11 @@
      * Gets the rounding mode for division operations
      * The default is {@code RoundingMode.HALF_UP}
      * @return the rounding mode.
-     */ 
+     */
     public RoundingMode getRoundingMode() {
         return roundingMode;
     }
-    
+
     /***
      * Sets the rounding mode for decimal divisions.
      * @param roundingMode rounding mode for decimal divisions
@@ -204,7 +204,7 @@
     public void setRoundingMode(RoundingMode roundingMode) {
         this.roundingMode = roundingMode;
     }
-    
+
     /***
      * Sets the scale for division operations.
      * The default is 64
@@ -213,7 +213,7 @@
     public int getScale() {
         return scale;
     }
-    
+
     /***
      * Sets the scale for division operations.
      * @param scale scale for division operations
@@ -221,7 +221,7 @@
     public void setScale(int scale) {
         this.scale = scale;
     }
-    
+
     /** {@inheritDoc} */
     public BigReal add(BigReal a) {
         return new BigReal(d.add(a.d));



Mime
View raw message