|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.linear.UDDecompositionImpl
public final class UDDecompositionImpl
Calculates the UD decomposition of a matrix.
The UD-decomposition of matrix A is a set of three matrices: U, D and Ut such that A = U×D×Ut. U is a upper triangular matrix and D is an diagonal matrix.
See Flavien Mercier (DCT/SB/OR)
Field Summary | |
---|---|
static double |
DEFAULT_ABSOLUTE_POSITIVITY_THRESHOLD
Default threshold below which diagonal elements are considered null and matrix not positive definite. |
static double |
DEFAULT_RELATIVE_SYMMETRY_THRESHOLD
Default threshold above which off-diagonal elements are considered too different and matrix not symmetric. |
Constructor Summary | |
---|---|
UDDecompositionImpl(RealMatrix matrix)
Compute the UD decomposition of the given matrix. |
|
UDDecompositionImpl(RealMatrix inMatrix,
double relativeSymmetryThreshold,
double absolutePositivityThreshold)
Compute the UD decomposition of the given matrix. |
Method Summary | |
---|---|
RealMatrix |
getD()
get the D matrix |
double |
getDeterminant()
get the determinant |
DecompositionSolver |
getSolver()
Get a solver of the linear equation A × X = B for matrices A. |
RealMatrix |
getU()
get the U matrix |
RealMatrix |
getUT()
get the UT matrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_RELATIVE_SYMMETRY_THRESHOLD
public static final double DEFAULT_ABSOLUTE_POSITIVITY_THRESHOLD
Constructor Detail |
---|
public UDDecompositionImpl(RealMatrix matrix)
Calling this constructor is equivalent to call UDDecompositionImpl(RealMatrix, double, double)
with the
thresholds set to the default values DEFAULT_RELATIVE_SYMMETRY_THRESHOLD
and
DEFAULT_ABSOLUTE_POSITIVITY_THRESHOLD
matrix
- the matrix to decomposeUDDecompositionImpl(RealMatrix, double, double)
,
DEFAULT_RELATIVE_SYMMETRY_THRESHOLD
,
DEFAULT_ABSOLUTE_POSITIVITY_THRESHOLD
public UDDecompositionImpl(RealMatrix inMatrix, double relativeSymmetryThreshold, double absolutePositivityThreshold)
inMatrix
- the matrix to decomposerelativeSymmetryThreshold
- threshold above which off-diagonal elements are considered too different and matrix not symmetricabsolutePositivityThreshold
- threshold below which diagonal elements are considered null and matrix not positive definite *DEFAULT_RELATIVE_SYMMETRY_THRESHOLD
,
*
Method Detail |
---|
public RealMatrix getU()
getU
in interface UDDecomposition
public RealMatrix getD()
getD
in interface UDDecomposition
public RealMatrix getUT()
getUT
in interface UDDecomposition
public double getDeterminant()
getDeterminant
in interface UDDecomposition
public DecompositionSolver getSolver()
UDDecomposition
getSolver
in interface UDDecomposition
UDDecomposition.getSolver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |