Package rocks.palaiologos.maja.matrix
Class DoubleLUPDecompositionResult
java.lang.Object
rocks.palaiologos.maja.matrix.DoubleLUPDecompositionResult
The result of LUP decomposition.
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleLUPDecompositionResult
(DoubleMatrix lower, DoubleMatrix upper, int[] permutation, boolean nonsingular, double determinant, int n, int m, DoubleMatrix LU) -
Method Summary
-
Constructor Details
-
DoubleLUPDecompositionResult
public DoubleLUPDecompositionResult(DoubleMatrix lower, DoubleMatrix upper, int[] permutation, boolean nonsingular, double determinant, int n, int m, DoubleMatrix LU)
-
-
Method Details
-
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:
-