MATH-425
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:
parent
030fff9a45
commit
25ac524b79
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue