| java.lang.Object com.vividsolutions.jump.geom.Matrix
Matrix | public class Matrix (Code) | | Implements some 2D matrix operations
(in particular, solving systems of linear equations).
author: Martin Davis |
Method Summary | |
public static double[] | solve(double[][] a, double[] b) Solves a system of equations using Gaussian Elimination. |
solve | public static double[] solve(double[][] a, double[] b)(Code) | | 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: a - an nxn matrix in row/column order )modified by this method) Parameters: b - a vector of length n a vector containing the solution (if any) null if the system has no or no unique solution throws: IllegalArgumentException - if the matrix is the wrong size |
|
|