|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.math.Mat
public final class Mat
Generic Matrix algorithmns
| Constructor Summary | |
|---|---|
private |
Mat()
|
| Method Summary | |
|---|---|
static float[] |
getInvertedPermutationMatrix(int[] p)
Assuming that p is a length m array containg a permutation of 0..m-1, this method returns a corresponding m X m inverse permutation matrix for permuting matrix rows. |
static void |
getLUfactors(float[] matrix,
int m,
int[] p,
float[] L,
float[] U)
Extracts the L and U factors from m X m matrix "matrix", using the permutation p. |
static float[] |
getPermutationMatrix(int[] p)
Assuming that p is a length m array containg a permutation of 0..m-1, this method returns a corresponding m X m permutation matrix for permuting matrix rows. |
static void |
invertMatrix(float[] A,
int n,
float[] Ainv)
|
static int[] |
invertPermutation(int[] p)
Inverts a permutation |
static boolean |
LUDecompose(float[] matrix,
int m,
int n,
int[] p)
Calculates a LU decomposition of matrix m, and stores the result back in m. |
static void |
mul(float[] dst,
float[] a,
int an,
float[] b,
int bn)
dst = A * B. |
static float[] |
permute(int[] p,
float[] b)
permutes vector b, according to permutation p |
static void |
set(float[] dest,
float[] src,
int m,
int n)
Copies an m X n array from src to dest |
static float[] |
solveLUSystem(float[] LU,
int[] p,
float[] b)
Solves the matrix equation A x = b, assuming that LU is an LU decomposition of P*A , where P is the permutation matrix corresponding to p, and obtained during partial pivoting for the LU decomposition. |
static void |
tridiagonalSolve(float[] a,
float[] b,
float[] c,
float[] d,
float[] x)
Solves Ax=d, with A the tridiagonal matrix b1 c1 .. 0 a2 b2 c2 .. 0 0 a3 b3 c3 .. 0 .. 0 .. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Mat()
| Method Detail |
|---|
public static boolean LUDecompose(float[] matrix,
int m,
int n,
int[] p)
public static float[] solveLUSystem(float[] LU,
int[] p,
float[] b)
public static void invertMatrix(float[] A,
int n,
float[] Ainv)
public static void set(float[] dest,
float[] src,
int m,
int n)
public static void getLUfactors(float[] matrix,
int m,
int[] p,
float[] L,
float[] U)
public static int[] invertPermutation(int[] p)
public static float[] getPermutationMatrix(int[] p)
public static float[] getInvertedPermutationMatrix(int[] p)
public static float[] permute(int[] p,
float[] b)
public static void tridiagonalSolve(float[] a,
float[] b,
float[] c,
float[] d,
float[] x)
public static void mul(float[] dst,
float[] a,
int an,
float[] b,
int bn)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||