NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.Mathematics.Matrix Class Reference

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...
 

Detailed Description

Implements some 2D matrix operations (in particular, solving systems of linear equations).

<author>Martin Davis</author>

Member Function Documentation

static double [] NetTopologySuite.Mathematics.Matrix.Solve ( double  a[][],
double[]  b 
)
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.

Parameters
aAn nxn matrix in row/column order )modified by this method)
bA vector of length n
Returns

A vector containing the solution (if any)
or

null

if the system has no or no unique solution

Exceptions
ArgumentExceptionIf the matrix has the wrong size

A is now (virtually) in upper-triangular form. The solution vector is determined by back-substitution.


The documentation for this class was generated from the following file: