NetTopologySuite
|
Implements some 2D matrix operations (in particular, solving systems of linear equations). More...
Static Public Member Functions | |
static double[] | Solve (double[][] a, double[] b) |
Solves a system of equations using Gaussian Elimination. In order to avoid overhead the algorithm runs in-place on - if should not be modified the client must supply a copy. More... | |
Implements some 2D matrix operations (in particular, solving systems of linear equations).
<author>Martin Davis</author>
|
static |
Solves a system of equations using Gaussian Elimination. In order to avoid overhead the algorithm runs in-place on - if should not be modified the client must supply a copy.
a | An nxn matrix in row/column order )modified by this method) |
b | A vector of length n |
A vector containing the solution (if any)
or
null
if the system has no or no unique solution
ArgumentException | If the matrix has the wrong size |
A is now (virtually) in upper-triangular form. The solution vector is determined by back-substitution.