Class Matrix
- Namespace
- NetTopologySuite.Geometries.Utilities
- Assembly
- NetTopologySuite.dll
Implements some 2D matrix operations (in particular, solving systems of linear equations).
public class Matrix
- Inheritance
-
Matrix
- Inherited Members
Constructors
Matrix()
public Matrix()
Methods
Solve(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.
public static double[] Solve(double[][] a, double[] b)
Parameters
a
double[][]A an nxn matrix in row/column order )modified by this method)
b
double[]A vector of length n
Returns
- double[]
- A vector containing the solution (if any)
null
if the system has no or no unique solution
Exceptions
- ArgumentException
if the matrix is the wrong size