GaussianElimination Class |
The GaussianElimination data type provides methods to solve a linear system of equations Ax = B, where A is an M-by-N matrix and B is a length N vector.
This is a bare-bones implementation that uses Gaussian elimination with partial pivoting. See GaussianEliminationLite.java for a stripped-down version that assumes the matrix A is square and nonsingular. See for an alternate implementation that uses Gauss-Jordan elimination. For an industrial-strength numerical linear algebra library, see JAMA.
Namespace: Algs4Net
public class GaussianElimination
The GaussianElimination type exposes the following members.
Name | Description | |
---|---|---|
![]() | GaussianElimination |
Solves the linear system of equations Ax = B,
where A is an M-by-N matrix and B
is a length M vector. |
Name | Description | |
---|---|---|
![]() | IsFeasible |
Returns true if there exists a solution to the linear system of
equations Ax = B. |
Name | Description | |
---|---|---|
![]() ![]() | MainTest |
Demo test the GaussianElimination data type. |
![]() | Primal |
Returns a solution to the linear system of equations Ax = B. |
For additional documentation, see Section 9.9Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
This class is a C# port from the original Java class GaussianElimination implementation by the respective authors.