Package org.la4j.linear
Class AbstractSolver
- java.lang.Object
-
- org.la4j.linear.AbstractSolver
-
- All Implemented Interfaces:
java.io.Serializable
,LinearSystemSolver
- Direct Known Subclasses:
ForwardBackSubstitutionSolver
,GaussianSolver
,JacobiSolver
,LeastNormSolver
,LeastSquaresSolver
,SeidelSolver
,SquareRootSolver
,SweepSolver
public abstract class AbstractSolver extends java.lang.Object implements LinearSystemSolver
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSolver(Matrix a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensureRHSIsCorrect(Vector vector)
int
equations()
Returns the number of equations in this solver.protected void
fail(java.lang.String message)
Matrix
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 Detail
-
a
protected Matrix a
-
unknowns
protected int unknowns
-
equations
protected int equations
-
-
Constructor Detail
-
AbstractSolver
protected AbstractSolver(Matrix a)
-
-
Method Detail
-
self
public Matrix 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
protected void ensureRHSIsCorrect(Vector vector)
-
fail
protected void fail(java.lang.String message)
-
-