public class Matrix
extends java.lang.Object
| Constructor and Description |
|---|
Matrix() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
solve(double[][] a,
double[] b)
Solves a system of equations using Gaussian Elimination.
|
private static void |
swapRows(double[][] m,
int i,
int j) |
private static void |
swapRows(double[] m,
int i,
int j) |
private static void swapRows(double[][] m,
int i,
int j)
private static void swapRows(double[] m,
int i,
int j)
public static double[] solve(double[][] a,
double[] b)
a - an nxn matrix in row/column order )modified by this method)b - a vector of length njava.lang.IllegalArgumentException - if the matrix is the wrong size