Record Class LUResult<E>
java.lang.Object
java.lang.Record
org.episteme.core.mathematics.linearalgebra.matrices.solvers.LUResult<E>
- Type Parameters:
E- the element type- Record Components:
L- the lower triangular matrixU- the upper triangular matrixP- the permutation vector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getL()Reconstructs the original matrix A (un-permuted).getP()getU()final inthashCode()Returns a hash code value for this object.L()Returns the value of theLrecord component.P()Returns the value of thePrecord component.Reconstructs the matrix A (as permuted by P).Solves the system A * x = b using the LU decomposition results.final StringtoString()Returns a string representation of this record class.U()Returns the value of theUrecord component.
-
Constructor Details
-
LUResult
-
-
Method Details
-
getL
-
getU
-
getP
-
reconstruct
-
getOriginalA
-
solve
Solves the system A * x = b using the LU decomposition results.- Parameters:
b- the right-hand side vector- Returns:
- the solution vector x
- Throws:
IllegalArgumentException- if dimensions mismatchUnsupportedOperationException- if the ring is not a FieldArithmeticException- if the matrix is singular
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
L
-
U
-
P
-