mikera.matrixx.decompose
Interface ILUResult
-
- All Known Subinterfaces:
- ILUPResult
- All Known Implementing Classes:
- LUPResult
public interface ILUResultInterface for results of LU decompositionLU Decomposition refactors the original matrix such that:
*L*U = Awhere L is a lower triangular matrix, U is an upper triangular matrix and A is the original matrix.LU Decomposition is useful since once the decomposition has been performed linear equations can be quickly solved and the original matrix A inverted. Different algorithms can be selected to perform the decomposition, all will have the same end result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doublecomputeDeterminant()Computes the determinant from the LU decomposition.AMatrixgetL()Returns the L matrix from the decomposition.AMatrixgetU()Returns the U matrix from the decomposition.
-
-
-
Method Detail
-
getL
AMatrix getL()
Returns the L matrix from the decomposition. This matrix will have ones on the leading diagonal.
- Returns:
- The L matrix.
-
getU
AMatrix getU()
Returns the U matrix from the decomposition.
- Returns:
- The U matrix.
-
computeDeterminant
double computeDeterminant()
Computes the determinant from the LU decomposition.- Returns:
- The matrix's determinant.
-
-
DMelt 3.0 © DataMelt by jWork.ORG