commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1034193 - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/linear/ test/java/org/apache/commons/math/linear/
Date Thu, 11 Nov 2010 23:13:01 GMT
Author: erans
Date: Thu Nov 11 23:13:01 2010
New Revision: 1034193

URL: http://svn.apache.org/viewvc?rev=1034193&view=rev
Log:
MATH-438
Removed deprecated class "MatrixIndexException".

Removed:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/MatrixIndexException.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/MatrixIndexExceptionTest.java
Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java?rev=1034193&r1=1034192&r2=1034193&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
Thu Nov 11 23:13:01 2010
@@ -53,13 +53,13 @@ public class AbstractRealVectorTest exte
         }
 
         @Override
-        public RealVector add(RealVector v) throws IllegalArgumentException {
+        public RealVector add(RealVector v) {
             RealVector result = new ArrayRealVector(v);
             return result.add(this);
         }
 
         @Override
-        public RealVector subtract(RealVector v) throws IllegalArgumentException {
+        public RealVector subtract(RealVector v) {
             RealVector result = new ArrayRealVector(v);
             return result.subtract(this).mapMultiplyToSelf(-1);
         }
@@ -112,16 +112,16 @@ public class AbstractRealVectorTest exte
             return this;
         }
 
-        public RealVector ebeMultiply(RealVector v) throws IllegalArgumentException {
+        public RealVector ebeMultiply(RealVector v) {
             throw unsupported();
         }
 
-        public RealVector ebeDivide(RealVector v) throws IllegalArgumentException {
+        public RealVector ebeDivide(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public double dotProduct(RealVector v) throws IllegalArgumentException {
+        public double dotProduct(RealVector v) {
             throw unsupported();
         }
 
@@ -140,15 +140,15 @@ public class AbstractRealVectorTest exte
             throw unsupported();
         }
 
-        public RealVector projection(RealVector v) throws IllegalArgumentException {
+        public RealVector projection(RealVector v) {
             throw unsupported();
         }
 
-        public double getEntry(int index) throws MatrixIndexException {
+        public double getEntry(int index) {
             return values[index];
         }
 
-        public void setEntry(int index, double value) throws MatrixIndexException {
+        public void setEntry(int index, double value) {
             values[index] = value;
         }
 
@@ -168,7 +168,7 @@ public class AbstractRealVectorTest exte
             throw unsupported();
         }
 
-        public RealVector getSubVector(int index, int n) throws MatrixIndexException {
+        public RealVector getSubVector(int index, int n) {
             throw unsupported();
         }
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java?rev=1034193&r1=1034192&r2=1034193&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
Thu Nov 11 23:13:01 2010
@@ -95,19 +95,19 @@ public class ArrayFieldVectorTest extend
             throw unsupported();
         }
 
-        public FieldVector<T> add(FieldVector<T> v) throws IllegalArgumentException
{
+        public FieldVector<T> add(FieldVector<T> v) {
             throw unsupported();
         }
 
-        public FieldVector<T> add(T[] v) throws IllegalArgumentException {
+        public FieldVector<T> add(T[] v) {
             throw unsupported();
         }
 
-        public FieldVector<T> subtract(FieldVector<T> v) throws IllegalArgumentException
{
+        public FieldVector<T> subtract(FieldVector<T> v) {
             throw unsupported();
         }
 
-        public FieldVector<T> subtract(T[] v) throws IllegalArgumentException {
+        public FieldVector<T> subtract(T[] v) {
             throw unsupported();
         }
 
@@ -155,19 +155,19 @@ public class ArrayFieldVectorTest extend
             throw unsupported();
         }
 
-        public FieldVector<T> ebeMultiply(FieldVector<T> v) throws IllegalArgumentException
{
+        public FieldVector<T> ebeMultiply(FieldVector<T> v) {
             throw unsupported();
         }
 
-        public FieldVector<T> ebeMultiply(T[] v) throws IllegalArgumentException {
+        public FieldVector<T> ebeMultiply(T[] v) {
             throw unsupported();
         }
 
-        public FieldVector<T> ebeDivide(FieldVector<T> v) throws IllegalArgumentException
{
+        public FieldVector<T> ebeDivide(FieldVector<T> v) {
             throw unsupported();
         }
 
-        public FieldVector<T> ebeDivide(T[] v) throws IllegalArgumentException {
+        public FieldVector<T> ebeDivide(T[] v) {
             throw unsupported();
         }
 
@@ -175,7 +175,7 @@ public class ArrayFieldVectorTest extend
             return data.clone();
         }
 
-        public T dotProduct(FieldVector<T> v) throws IllegalArgumentException {
+        public T dotProduct(FieldVector<T> v) {
             T dot = field.getZero();
             for (int i = 0; i < data.length; i++) {
                 dot = dot.add(data[i].multiply(v.getEntry(i)));
@@ -183,7 +183,7 @@ public class ArrayFieldVectorTest extend
             return dot;
         }
 
-        public T dotProduct(T[] v) throws IllegalArgumentException {
+        public T dotProduct(T[] v) {
             T dot = field.getZero();
             for (int i = 0; i < data.length; i++) {
                 dot = dot.add(data[i].multiply(v[i]));
@@ -191,23 +191,23 @@ public class ArrayFieldVectorTest extend
             return dot;
         }
 
-        public FieldVector<T> projection(FieldVector<T> v) throws IllegalArgumentException
{
+        public FieldVector<T> projection(FieldVector<T> v) {
             throw unsupported();
         }
 
-        public FieldVector<T> projection(T[] v) throws IllegalArgumentException {
+        public FieldVector<T> projection(T[] v) {
             throw unsupported();
         }
 
-        public FieldMatrix<T> outerProduct(FieldVector<T> v) throws IllegalArgumentException
{
+        public FieldMatrix<T> outerProduct(FieldVector<T> v) {
             throw unsupported();
         }
 
-        public FieldMatrix<T> outerProduct(T[] v) throws IllegalArgumentException {
+        public FieldMatrix<T> outerProduct(T[] v) {
             throw unsupported();
         }
 
-        public T getEntry(int index) throws MatrixIndexException {
+        public T getEntry(int index) {
             return data[index];
         }
 
@@ -227,19 +227,19 @@ public class ArrayFieldVectorTest extend
             throw unsupported();
         }
 
-        public FieldVector<T> getSubVector(int index, int n) throws MatrixIndexException
{
+        public FieldVector<T> getSubVector(int index, int n) {
             throw unsupported();
         }
 
-        public void setEntry(int index, T value) throws MatrixIndexException {
+        public void setEntry(int index, T value) {
             throw unsupported();
         }
 
-        public void setSubVector(int index, FieldVector<T> v) throws MatrixIndexException
{
+        public void setSubVector(int index, FieldVector<T> v) {
             throw unsupported();
         }
 
-        public void setSubVector(int index, T[] v) throws MatrixIndexException {
+        public void setSubVector(int index, T[] v) {
             throw unsupported();
         }
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java?rev=1034193&r1=1034192&r2=1034193&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java
Thu Nov 11 23:13:01 2010
@@ -67,11 +67,11 @@ public class ArrayRealVectorTest extends
             return new UnsupportedOperationException("Not supported, unneeded for test purposes");
         }
 
-        public RealVector map(UnivariateRealFunction function) throws FunctionEvaluationException
{
+        public RealVector map(UnivariateRealFunction function) {
             throw unsupported();
         }
 
-        public RealVector mapToSelf(UnivariateRealFunction function) throws FunctionEvaluationException
{
+        public RealVector mapToSelf(UnivariateRealFunction function) {
             throw unsupported();
         }
 
@@ -108,19 +108,19 @@ public class ArrayRealVectorTest extends
             throw unsupported();
         }
 
-        public RealVector add(RealVector v) throws IllegalArgumentException {
+        public RealVector add(RealVector v) {
             throw unsupported();
         }
 
-        public RealVector add(double[] v) throws IllegalArgumentException {
+        public RealVector add(double[] v) {
             throw unsupported();
         }
 
-        public RealVector subtract(RealVector v) throws IllegalArgumentException {
+        public RealVector subtract(RealVector v) {
             throw unsupported();
         }
 
-        public RealVector subtract(double[] v) throws IllegalArgumentException {
+        public RealVector subtract(double[] v) {
             throw unsupported();
         }
 
@@ -352,19 +352,19 @@ public class ArrayRealVectorTest extends
             throw unsupported();
         }
 
-        public RealVector ebeMultiply(RealVector v) throws IllegalArgumentException {
+        public RealVector ebeMultiply(RealVector v) {
             throw unsupported();
         }
 
-        public RealVector ebeMultiply(double[] v) throws IllegalArgumentException {
+        public RealVector ebeMultiply(double[] v) {
             throw unsupported();
         }
 
-        public RealVector ebeDivide(RealVector v) throws IllegalArgumentException {
+        public RealVector ebeDivide(RealVector v) {
             throw unsupported();
         }
 
-        public RealVector ebeDivide(double[] v) throws IllegalArgumentException {
+        public RealVector ebeDivide(double[] v) {
             throw unsupported();
         }
 
@@ -372,7 +372,7 @@ public class ArrayRealVectorTest extends
             return data.clone();
         }
 
-        public double dotProduct(RealVector v) throws IllegalArgumentException {
+        public double dotProduct(RealVector v) {
             double dot = 0;
             for (int i = 0; i < data.length; i++) {
                 dot += data[i] * v.getEntry(i);
@@ -380,7 +380,7 @@ public class ArrayRealVectorTest extends
             return dot;
         }
 
-        public double dotProduct(double[] v) throws IllegalArgumentException {
+        public double dotProduct(double[] v) {
             double dot = 0;
             for (int i = 0; i < data.length; i++) {
                 dot += data[i] * v[i];
@@ -400,27 +400,27 @@ public class ArrayRealVectorTest extends
             throw unsupported();
         }
 
-        public double getDistance(RealVector v) throws IllegalArgumentException {
+        public double getDistance(RealVector v) {
             throw unsupported();
         }
 
-        public double getDistance(double[] v) throws IllegalArgumentException {
+        public double getDistance(double[] v) {
             throw unsupported();
         }
 
-        public double getL1Distance(RealVector v) throws IllegalArgumentException {
+        public double getL1Distance(RealVector v) {
             throw unsupported();
         }
 
-        public double getL1Distance(double[] v) throws IllegalArgumentException {
+        public double getL1Distance(double[] v) {
             throw unsupported();
         }
 
-        public double getLInfDistance(RealVector v) throws IllegalArgumentException {
+        public double getLInfDistance(RealVector v) {
             throw unsupported();
         }
 
-        public double getLInfDistance(double[] v) throws IllegalArgumentException {
+        public double getLInfDistance(double[] v) {
             throw unsupported();
         }
 
@@ -432,23 +432,23 @@ public class ArrayRealVectorTest extends
             throw unsupported();
         }
 
-        public RealVector projection(RealVector v) throws IllegalArgumentException {
+        public RealVector projection(RealVector v) {
             throw unsupported();
         }
 
-        public RealVector projection(double[] v) throws IllegalArgumentException {
+        public RealVector projection(double[] v) {
             throw unsupported();
         }
 
-        public RealMatrix outerProduct(RealVector v) throws IllegalArgumentException {
+        public RealMatrix outerProduct(RealVector v) {
             throw unsupported();
         }
 
-        public RealMatrix outerProduct(double[] v) throws IllegalArgumentException {
+        public RealMatrix outerProduct(double[] v) {
             throw unsupported();
         }
 
-        public double getEntry(int index) throws MatrixIndexException {
+        public double getEntry(int index) {
             return data[index];
         }
 
@@ -468,19 +468,19 @@ public class ArrayRealVectorTest extends
             throw unsupported();
         }
 
-        public RealVector getSubVector(int index, int n) throws MatrixIndexException {
+        public RealVector getSubVector(int index, int n) {
             throw unsupported();
         }
 
-        public void setEntry(int index, double value) throws MatrixIndexException {
+        public void setEntry(int index, double value) {
             throw unsupported();
         }
 
-        public void setSubVector(int index, RealVector v) throws MatrixIndexException {
+        public void setSubVector(int index, RealVector v) {
             throw unsupported();
         }
 
-        public void setSubVector(int index, double[] v) throws MatrixIndexException {
+        public void setSubVector(int index, double[] v) {
             throw unsupported();
         }
 

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java?rev=1034193&r1=1034192&r2=1034193&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java
Thu Nov 11 23:13:01 2010
@@ -66,12 +66,12 @@ public class SparseRealVectorTest extend
         }
 
         @Override
-        public RealVector map(UnivariateRealFunction function) throws FunctionEvaluationException
{
+        public RealVector map(UnivariateRealFunction function) {
             throw unsupported();
         }
 
         @Override
-        public RealVector mapToSelf(UnivariateRealFunction function) throws FunctionEvaluationException
{
+        public RealVector mapToSelf(UnivariateRealFunction function) {
             throw unsupported();
         }
 
@@ -86,22 +86,22 @@ public class SparseRealVectorTest extend
         }
 
         @Override
-        public RealVector add(RealVector v) throws IllegalArgumentException {
+        public RealVector add(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public RealVector add(double[] v) throws IllegalArgumentException {
+        public RealVector add(double[] v) {
             throw unsupported();
         }
 
         @Override
-        public RealVector subtract(RealVector v) throws IllegalArgumentException {
+        public RealVector subtract(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public RealVector subtract(double[] v) throws IllegalArgumentException {
+        public RealVector subtract(double[] v) {
             throw unsupported();
         }
 
@@ -389,21 +389,21 @@ public class SparseRealVectorTest extend
             throw unsupported();
         }
 
-        public RealVector ebeMultiply(RealVector v) throws IllegalArgumentException {
+        public RealVector ebeMultiply(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public RealVector ebeMultiply(double[] v) throws IllegalArgumentException {
+        public RealVector ebeMultiply(double[] v) {
             throw unsupported();
         }
 
-        public RealVector ebeDivide(RealVector v) throws IllegalArgumentException {
+        public RealVector ebeDivide(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public RealVector ebeDivide(double[] v) throws IllegalArgumentException {
+        public RealVector ebeDivide(double[] v) {
             throw unsupported();
         }
 
@@ -413,7 +413,7 @@ public class SparseRealVectorTest extend
         }
 
         @Override
-        public double dotProduct(RealVector v) throws IllegalArgumentException {
+        public double dotProduct(RealVector v) {
             double dot = 0;
             for (int i = 0; i < data.length; i++) {
                 dot += data[i] * v.getEntry(i);
@@ -422,7 +422,7 @@ public class SparseRealVectorTest extend
         }
 
         @Override
-        public double dotProduct(double[] v) throws IllegalArgumentException {
+        public double dotProduct(double[] v) {
             double dot = 0;
             for (int i = 0; i < data.length; i++) {
                 dot += data[i] * v[i];
@@ -446,32 +446,32 @@ public class SparseRealVectorTest extend
         }
 
         @Override
-        public double getDistance(RealVector v) throws IllegalArgumentException {
+        public double getDistance(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public double getDistance(double[] v) throws IllegalArgumentException {
+        public double getDistance(double[] v) {
             throw unsupported();
         }
 
         @Override
-        public double getL1Distance(RealVector v) throws IllegalArgumentException {
+        public double getL1Distance(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public double getL1Distance(double[] v) throws IllegalArgumentException {
+        public double getL1Distance(double[] v) {
             throw unsupported();
         }
 
         @Override
-        public double getLInfDistance(RealVector v) throws IllegalArgumentException {
+        public double getLInfDistance(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public double getLInfDistance(double[] v) throws IllegalArgumentException {
+        public double getLInfDistance(double[] v) {
             throw unsupported();
         }
 
@@ -485,26 +485,26 @@ public class SparseRealVectorTest extend
             throw unsupported();
         }
 
-        public RealVector projection(RealVector v) throws IllegalArgumentException {
+        public RealVector projection(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public RealVector projection(double[] v) throws IllegalArgumentException {
+        public RealVector projection(double[] v) {
             throw unsupported();
         }
 
         @Override
-        public RealMatrix outerProduct(RealVector v) throws IllegalArgumentException {
+        public RealMatrix outerProduct(RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public RealMatrix outerProduct(double[] v) throws IllegalArgumentException {
+        public RealMatrix outerProduct(double[] v) {
             throw unsupported();
         }
 
-        public double getEntry(int index) throws MatrixIndexException {
+        public double getEntry(int index) {
             return data[index];
         }
 
@@ -524,21 +524,21 @@ public class SparseRealVectorTest extend
             throw unsupported();
         }
 
-        public RealVector getSubVector(int index, int n) throws MatrixIndexException {
+        public RealVector getSubVector(int index, int n) {
             throw unsupported();
         }
 
-        public void setEntry(int index, double value) throws MatrixIndexException {
+        public void setEntry(int index, double value) {
             data[index] = value;
         }
 
         @Override
-        public void setSubVector(int index, RealVector v) throws MatrixIndexException {
+        public void setSubVector(int index, RealVector v) {
             throw unsupported();
         }
 
         @Override
-        public void setSubVector(int index, double[] v) throws MatrixIndexException {
+        public void setSubVector(int index, double[] v) {
             throw unsupported();
         }
 



Mime
View raw message