Search Results for

    Show / Hide Table of Contents

    Class Matrix

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

    Inheritance
    object
    Matrix
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Mathematics
    Assembly: NetTopologySuite.dll
    Syntax
    public class Matrix

    Methods

    | Edit this page View Source

    Solve(double[][], double[])

    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.

    Declaration
    public static double[] Solve(double[][] a, double[] b)
    Parameters
    Type Name Description
    double[][] a

    An nxn matrix in row/column order )modified by this method)

    double[] b

    A vector of length n

    Returns
    Type Description
    double[]

    A vector containing the solution (if any)
    or null if the system has no or no unique solution

    Exceptions
    Type Condition
    ArgumentException

    If the matrix has the wrong size

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX