Package org.la4j.linear
Class SweepSolver
java.lang.Object
org.la4j.linear.AbstractSolver
org.la4j.linear.SweepSolver
- All Implemented Interfaces:
Serializable,LinearSystemSolver
This class represents Sweep (or
Tridiagonal matrix, or Thomas) method for solving linear systems.
- See Also:
-
Field Summary
FieldsFields inherited from class org.la4j.linear.AbstractSolver
a, equations, unknowns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicableTo(Matrix matrix) Checks whether this solver applicable to givenmatrixor not.Solves the system A*x = b.Methods inherited from class org.la4j.linear.AbstractSolver
ensureRHSIsCorrect, equations, fail, self, unknownsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.la4j.linear.LinearSystemSolver
equations, self, unknowns
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SweepSolver
-
-
Method Details
-
solve
Description copied from interface:LinearSystemSolverSolves the system A*x = b.- Specified by:
solvein interfaceLinearSystemSolver- Parameters:
b-- Returns:
-
applicableTo
Description copied from interface:LinearSystemSolverChecks whether this solver applicable to givenmatrixor not.- Specified by:
applicableToin interfaceLinearSystemSolver- Parameters:
matrix-
-