Package de.labathome.trustconstr.sparse
Class DenseSolve.LUFactor
java.lang.Object
de.labathome.trustconstr.sparse.DenseSolve.LUFactor
- Enclosing class:
- DenseSolve
Factorisation of a square matrix
A ready to repeatedly
solve(double[]) against right-hand sides.
The factor stores LU in the LAPACK column-major layout used by
dgesv; calling solve costs only a forward/back
substitution.
-
Method Summary
-
Method Details
-
solve
public double[] solve(double[] b) SolveA x = breusing the captured LU.- Parameters:
b- length-nright-hand side; not modified- Returns:
- length-
nsolutionx
-
n
public int n()- Returns:
- the dimension of the factored matrix
-