Package org.la4j.linear
Class AbstractSolver
java.lang.Object
org.la4j.linear.AbstractSolver
- All Implemented Interfaces:
Serializable
,LinearSystemSolver
- Direct Known Subclasses:
ForwardBackSubstitutionSolver
,GaussianSolver
,JacobiSolver
,LeastNormSolver
,LeastSquaresSolver
,SeidelSolver
,SquareRootSolver
,SweepSolver
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
ensureRHSIsCorrect
(Vector vector) int
Returns the number of equations in this solver.protected void
self()
Returns the self matrix of the solver.int
unknowns()
Returns the number os unknowns in this solver.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
applicableTo, solve
-
Field Details
-
a
-
unknowns
protected int unknowns -
equations
protected int equations
-
-
Constructor Details
-
AbstractSolver
-
-
Method Details
-
self
Description copied from interface:LinearSystemSolver
Returns the self matrix of the solver.- Specified by:
self
in interfaceLinearSystemSolver
- Returns:
-
unknowns
public int unknowns()Description copied from interface:LinearSystemSolver
Returns the number os unknowns in this solver.- Specified by:
unknowns
in interfaceLinearSystemSolver
- Returns:
-
equations
public int equations()Description copied from interface:LinearSystemSolver
Returns the number of equations in this solver.- Specified by:
equations
in interfaceLinearSystemSolver
- Returns:
-
ensureRHSIsCorrect
-
fail
-