commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1041216 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularValueDecompositionImpl.java
Date Wed, 01 Dec 2010 23:58:43 GMT
Author: erans
Date: Wed Dec  1 23:58:43 2010
New Revision: 1041216

URL: http://svn.apache.org/viewvc?rev=1041216&view=rev
Log:
MATH-425
Remplaced deprecated code.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularValueDecompositionImpl.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularValueDecompositionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularValueDecompositionImpl.java?rev=1041216&r1=1041215&r2=1041216&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularValueDecompositionImpl.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/SingularValueDecompositionImpl.java
Wed Dec  1 23:58:43 2010
@@ -17,7 +17,7 @@
 
 package org.apache.commons.math.linear;
 
-import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.NumberIsTooLargeException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.util.FastMath;
 
@@ -192,9 +192,8 @@ public class SingularValueDecompositionI
         }
 
         if (dimension == 0) {
-            throw MathRuntimeException.createIllegalArgumentException(
-                    LocalizedFormats.TOO_LARGE_CUTOFF_SINGULAR_VALUE,
-                    minSingularValue, singularValues[0]);
+            throw new NumberIsTooLargeException(LocalizedFormats.TOO_LARGE_CUTOFF_SINGULAR_VALUE,
+                                                minSingularValue, singularValues[0], true);
         }
 
         final double[][] data = new double[dimension][p];



Mime
View raw message