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 protectedAbstractSolver(Matrix a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureRHSIsCorrect(Vector vector)intequations()Returns the number of equations in this solver.protected voidfail(java.lang.String message)Matrixself()Returns the self matrix of the solver.intunknowns()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:LinearSystemSolverReturns the self matrix of the solver.- Specified by:
selfin interfaceLinearSystemSolver- Returns:
-
unknowns
public int unknowns()
Description copied from interface:LinearSystemSolverReturns the number os unknowns in this solver.- Specified by:
unknownsin interfaceLinearSystemSolver- Returns:
-
equations
public int equations()
Description copied from interface:LinearSystemSolverReturns the number of equations in this solver.- Specified by:
equationsin interfaceLinearSystemSolver- Returns:
-
ensureRHSIsCorrect
protected void ensureRHSIsCorrect(Vector vector)
-
fail
protected void fail(java.lang.String message)
-
-