Package rocks.palaiologos.maja.matrix
Class DoubleLUPDecompositionResult
java.lang.Object
rocks.palaiologos.maja.matrix.DoubleLUPDecompositionResult
The result of LUP decomposition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final DoubleMatrixprivate final DoubleMatrixprivate final intprivate final booleanprivate final int[]private final DoubleMatrix -
Constructor Summary
ConstructorsConstructorDescriptionDoubleLUPDecompositionResult(DoubleMatrix lower, DoubleMatrix upper, int[] permutation, boolean nonsingular, double determinant, int n, int m, DoubleMatrix LU) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the determinant of the matrix.private DoubleMatrixgetMatrix(DoubleMatrix input, int[] r, int j0, int j1) lower()Get the lower triangular matrix.booleanTrue whether the matrix is nonsingular.int[]Get the permutation/pivot vector.Solve A * X = B.upper()Get the upper triangular matrix.
-
Field Details
-
lower
-
upper
-
permutation
private final int[] permutation -
nonsingular
private final boolean nonsingular -
determinant
private final double determinant -
n
private final int n -
LU
-
-
Constructor Details
-
DoubleLUPDecompositionResult
public DoubleLUPDecompositionResult(DoubleMatrix lower, DoubleMatrix upper, int[] permutation, boolean nonsingular, double determinant, int n, int m, DoubleMatrix LU)
-
-
Method Details
-
getMatrix
-
solve
Solve A * X = B.- Returns:
- X s.t. L * U * X = B(piv, :)
-
lower
Get the lower triangular matrix. -
upper
Get the upper triangular matrix. -
permutation
public int[] permutation()Get the permutation/pivot vector. -
nonsingular
public boolean nonsingular()True whether the matrix is nonsingular. -
determinant
public double determinant()Get the determinant of the matrix.- Returns:
-