opale.matrix.solver
Class SolverLU
java.lang.Object
|
+--opale.matrix.solver.SolverLU
- All Implemented Interfaces:
- Decomposition, Solver
- public class SolverLU
- extends java.lang.Object
- implements Solver, Decomposition
This class implements LU decomposition according to the book "Analyse matricielle appliquée à l'art de l'ingénieur", Lascaux & Théodor, Ed. Masson.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolverLU
public SolverLU()
decomp
public void decomp(Matrix A)
- Description copied from interface:
Decomposition
- Decompose the matrix A.
- Specified by:
decomp
in interface Decomposition
determinant
public double determinant()
- Compute the determinant : product of U[i][i]
- Returns:
- double, the determinant
solve
public void solve(Matrix A,
DVect b,
DVect x)
- Solve LUx=b.
- Specified by:
solve
in interface Solver
- Parameters:
Matrix
- A, not used.
main
public static void main(java.lang.String[] arg)