From 3998594624e7a03b22c88aa96bba01e693fd136f Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Mon, 5 Sep 2011 21:22:46 +0000 Subject: [PATCH] Wrote 1e-11 instead of 10E-12 (which was probably a typo). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165416 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/math/linear/LUDecompositionImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java b/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java index 2c03b58d5..21b93edaf 100644 --- a/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java +++ b/src/main/java/org/apache/commons/math/linear/LUDecompositionImpl.java @@ -33,8 +33,8 @@ import org.apache.commons.math.util.FastMath; * @since 2.0 */ public class LUDecompositionImpl implements LUDecomposition { - /** Default bound to determine effective singularity in LU decomposition */ - private static final double DEFAULT_TOO_SMALL = 10E-12; + /** Default bound to determine effective singularity in LU decomposition. */ + private static final double DEFAULT_TOO_SMALL = 1e-11; /** Entries of LU decomposition. */ private double lu[][]; /** Pivot permutation associated with LU decomposition */ @@ -52,6 +52,9 @@ public class LUDecompositionImpl implements LUDecomposition { /** * Calculates the LU-decomposition of the given matrix. + * This constructor uses 1e-11 as default value for the singularity + * threshold. + * * @param matrix Matrix to decompose. * @throws NonSquareMatrixException if matrix is not square. */