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
This commit is contained in:
parent
bf4184310d
commit
3998594624
|
@ -33,8 +33,8 @@ import org.apache.commons.math.util.FastMath;
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
public class LUDecompositionImpl implements LUDecomposition {
|
public class LUDecompositionImpl implements LUDecomposition {
|
||||||
/** Default bound to determine effective singularity in LU decomposition */
|
/** Default bound to determine effective singularity in LU decomposition. */
|
||||||
private static final double DEFAULT_TOO_SMALL = 10E-12;
|
private static final double DEFAULT_TOO_SMALL = 1e-11;
|
||||||
/** Entries of LU decomposition. */
|
/** Entries of LU decomposition. */
|
||||||
private double lu[][];
|
private double lu[][];
|
||||||
/** Pivot permutation associated with LU decomposition */
|
/** Pivot permutation associated with LU decomposition */
|
||||||
|
@ -52,6 +52,9 @@ public class LUDecompositionImpl implements LUDecomposition {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the LU-decomposition of the given matrix.
|
* 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.
|
* @param matrix Matrix to decompose.
|
||||||
* @throws NonSquareMatrixException if matrix is not square.
|
* @throws NonSquareMatrixException if matrix is not square.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue