Package org.flag4j.linalg.solvers.exact
Class RealExactSolver
java.lang.Object
org.flag4j.linalg.solvers.exact.ExactSolver<Matrix,Vector>
org.flag4j.linalg.solvers.exact.RealExactSolver
- All Implemented Interfaces:
LinearSolver<Matrix,
Vector>
Solver for solving a well determined system of linear equations in an exact sense using the
LU decomposition.
-
Field Summary
Fields inherited from class org.flag4j.linalg.solvers.exact.ExactSolver
backSolver, forwardSolver, lu, LU, rowPermute
-
Constructor Summary
ConstructorDescriptionConstructs an exact LU solver where the coefficient matrix is real dense. -
Method Summary
Methods inherited from class org.flag4j.linalg.solvers.exact.ExactSolver
decompose, solve, solve
-
Constructor Details
-
RealExactSolver
public RealExactSolver()Constructs an exact LU solver where the coefficient matrix is real dense.
-
-
Method Details
-
permuteRows
Permute the rows of a vector using the row permutation matrix from the LU decomposition.- Specified by:
permuteRows
in classExactSolver<Matrix,
Vector> - Parameters:
b
- Vector to permute the rows of.- Returns:
- A vector which is the result of applying the row permutation from the LU decomposition
to the vector
b
.
-
permuteRows
Permute the rows of a matrix using the row permutation matrix from the LU decomposition.- Specified by:
permuteRows
in classExactSolver<Matrix,
Vector> - Parameters:
B
- matrix to permute the rows of.- Returns:
- A matrix which is the result of applying the row permutation from the LU decomposition
to the matrix
B
.
-