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 voidensureRHSIsCorrect(Vector vector) intReturns the number of equations in this solver.protected voidself()Returns the self matrix of the solver.intunknowns()Returns the number os unknowns in this solver.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LinearSystemSolver
applicableTo, solve
-
Field Details
-
a
-
unknowns
protected int unknowns -
equations
protected int equations
-
-
Constructor Details
-
AbstractSolver
-
-
Method Details
-
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
-
fail
-