Package org.la4j.linear
Interface LinearSystemSolver
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractSolver,ForwardBackSubstitutionSolver,GaussianSolver,JacobiSolver,LeastNormSolver,LeastSquaresSolver,SeidelSolver,SquareRootSolver,SweepSolver
public interface LinearSystemSolver extends java.io.SerializableLinear System Solver interface; This class implements Strategy design pattern;
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapplicableTo(Matrix matrix)Checks whether this solver applicable to givenmatrixor not.intequations()Returns the number of equations in this solver.Matrixself()Returns the self matrix of the solver.Vectorsolve(Vector b)Solves the system A*x = b.intunknowns()Returns the number os unknowns in this solver.
-
-
-
Method Detail
-
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
boolean applicableTo(Matrix matrix)
Checks whether this solver applicable to givenmatrixor not.- Parameters:
matrix-
-
-