Remplaced deprecated code.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1041216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2010-12-01 23:58:43 +00:00
parent 030fff9a45
commit 25ac524b79
1 changed files with 3 additions and 4 deletions

View File

@ -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 SingularValueDecompositionImpl implements SingularValueDecompositio
}
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];