Class GaussianSolver
java.lang.Object
org.la4j.linear.AbstractSolver
org.la4j.linear.GaussianSolver
- All Implemented Interfaces:
Serializable, LinearSystemSolver
This class represents Gaussian method for solving linear systems. More details
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractSolver
a, equations, unknowns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicableTo(Matrix matrix) Checks whether this solver applicable to givenmatrixor not.private voidbackSubstitution(Matrix matrix, Vector result) Solves the system A*x = b.private voidtriangularizeWithPivoting(Matrix matrix) Methods inherited from class AbstractSolver
ensureRHSIsCorrect, equations, fail, self, unknownsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LinearSystemSolver
equations, self, unknowns
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
aa
-
-
Constructor Details
-
GaussianSolver
-
-
Method Details
-
solve
Description copied from interface:LinearSystemSolverSolves the system A*x = b.- Specified by:
solvein interfaceLinearSystemSolver- Parameters:
b-- Returns:
-
triangularizeWithPivoting
-
backSubstitution
-
applicableTo
Description copied from interface:LinearSystemSolverChecks whether this solver applicable to givenmatrixor not.- Specified by:
applicableToin interfaceLinearSystemSolver- Parameters:
matrix-
-