Package org.la4j.linear
Class ForwardBackSubstitutionSolver
- java.lang.Object
-
- org.la4j.linear.AbstractSolver
-
- org.la4j.linear.ForwardBackSubstitutionSolver
-
- All Implemented Interfaces:
java.io.Serializable
,LinearSystemSolver
public class ForwardBackSubstitutionSolver extends AbstractSolver implements LinearSystemSolver
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Matrix
lu
private Matrix
p
private static long
serialVersionUID
-
Fields inherited from class org.la4j.linear.AbstractSolver
a, equations, unknowns
-
-
Constructor Summary
Constructors Constructor Description ForwardBackSubstitutionSolver(Matrix a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applicableTo(Matrix matrix)
Checks whether this solver applicable to givenmatrix
or not.Vector
solve(Vector b)
Solves the system A*x = b.-
Methods inherited from class org.la4j.linear.AbstractSolver
ensureRHSIsCorrect, equations, fail, self, unknowns
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.la4j.linear.LinearSystemSolver
equations, self, unknowns
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
lu
private final Matrix lu
-
p
private final Matrix p
-
-
Constructor Detail
-
ForwardBackSubstitutionSolver
public ForwardBackSubstitutionSolver(Matrix a)
-
-
Method Detail
-
solve
public Vector solve(Vector b)
Description copied from interface:LinearSystemSolver
Solves the system A*x = b.- Specified by:
solve
in interfaceLinearSystemSolver
- Returns:
-
applicableTo
public boolean applicableTo(Matrix matrix)
Description copied from interface:LinearSystemSolver
Checks whether this solver applicable to givenmatrix
or not.- Specified by:
applicableTo
in interfaceLinearSystemSolver
-
-