Class Matrix
Implements some 2D matrix operations (in particular, solving systems of linear equations).
Inherited Members
Namespace: NetTopologySuite.Geometries.Utilities
Assembly: NetTopologySuite.dll
Syntax
public class Matrix
Methods
| Improve this Doc View SourceSolve(Double[][], Double[])
Solves a system of equations using Gaussian Elimination.
In order to avoid overhead the algorithm runs in-place
on A - if A should not be modified the client must supply a copy.
Declaration
public static double[] Solve(double[][] a, double[] b)
Parameters
Type | Name | Description |
---|---|---|
Double[][] | a | A an nxn matrix in row/column order )modified by this method) |
Double[] | b | A vector of length n |
Returns
Type | Description |
---|---|
Double[] |
|
Exceptions
Type | Condition |
---|---|
ArgumentException | if the matrix is the wrong size |