public class Matrix
extends java.lang.Object
Class with matrix operations
| Constructor and Description |
|---|
Matrix() |
| Modifier and Type | Method and Description |
|---|---|
static int |
InvertMatrix(double[][] matrix,
double[][] inverted,
int n)
Inversion method
|
static int |
lu_decompose(double[][] a,
int n,
double[] scales,
double[][] lu,
int[] ps)
Lu Descomposition of a matrix
|
static void |
lu_solve(double[] x,
double[] b,
int n,
double[][] lu,
int[] ps)
Lu solution of a matrix
|
public static int InvertMatrix(double[][] matrix,
double[][] inverted,
int n)
Inversion method
matrix - Input matrixinverted - Inverted output matrixn - Matrix order (Number of rows and columns)public static void lu_solve(double[] x,
double[] b,
int n,
double[][] lu,
int[] ps)
Lu solution of a matrix
x - vector of inputsb - vector of coefficientsn - number of elementslu - matrix with lu decompositionps - indexespublic static int lu_decompose(double[][] a,
int n,
double[] scales,
double[][] lu,
int[] ps)
Lu Descomposition of a matrix
a - matrix of coefficientsn - number of elementsscales - vector with scales of the elementslu - matrix with the lu decompositionps - indexes