Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.vividsolutions.jts.geom.util
Class Matrix

    java.lang.Object
      com.vividsolutions.jts.geom.util.Matrix

public class Matrix
extends java.lang.Object

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

Author:
  Martin Davis

Constructor Summary
`Matrix()`

Method Summary
`static double[]` | `solve(double[][] a, double[] b)` Solves a system of equations using Gaussian Elimination.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Matrix

    public Matrix()

Method Detail

### solve

    public 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 A - if A should not be modified the client must supply a copy.

  Parameters:
    `b` - a vector of length n
  Returns:
    a vector containing the solution (if any)
  Throws:
    `java.lang.IllegalArgumentException` - if the matrix is the wrong size

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD