Package org.la4j.linear
Interface LinearSystemSolver
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractSolver
,ForwardBackSubstitutionSolver
,GaussianSolver
,JacobiSolver
,LeastNormSolver
,LeastSquaresSolver
,SeidelSolver
,SquareRootSolver
,SweepSolver
Linear System Solver interface;
This class implements Strategy design pattern;
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applicableTo
(Matrix matrix) Checks whether this solver applicable to givenmatrix
or not.int
Returns the number of equations in this solver.self()
Returns the self matrix of the solver.Solves the system A*x = b.int
unknowns()
Returns the number os unknowns in this solver.
-
Method Details
-
solve
Solves the system A*x = b.- Parameters:
b
-- Returns:
-
self
Matrix self()Returns the self matrix of the solver.- Returns:
-
unknowns
int unknowns()Returns the number os unknowns in this solver.- Returns:
-
equations
int equations()Returns the number of equations in this solver.- Returns:
-
applicableTo
Checks whether this solver applicable to givenmatrix
or not.- Parameters:
matrix
-
-