|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--rvl.util.LinAlg
Linear algebra functions
| Constructor Summary | |
LinAlg()
|
|
| Method Summary | |
static double[] |
constant(double val,
int n)
create a constant vector of given value val, of length n |
static double[] |
copy(double[] x)
|
static double[][] |
LU(double[][] A,
int[] row)
|
static boolean |
LUInPlace(double[][] A,
int[] row)
in-place LU decomposition of A uses scaled-column pivoting |
static double[] |
LUSolve(double[][] LU,
int[] row,
double[] b)
|
static double[] |
LUSolveInPlace(double[][] LU,
int[] row,
double[] b)
Solve the system LUx = b (in-place; alters b) |
static void |
print(double[] x)
print a vector |
static void |
println(double[] x)
print a vector, then a newline |
static void |
println(double[][] x)
print a matrix and a newline |
static double[][] |
transpose(double[][] A)
transpose a matrix |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinAlg()
| Method Detail |
public static boolean LUInPlace(double[][] A,
int[] row)
A - square matrix (n x n)row - integer array of length n to store row permutations
public static double[] LUSolveInPlace(double[][] LU,
int[] row,
double[] b)
LU - LU decomposition (result of LU
or LUInPlace)row - permutation arrayb - rhs of system (altered by process)
public static double[][] LU(double[][] A,
int[] row)
LUInPlace
public static double[] LUSolve(double[][] LU,
int[] row,
double[] b)
public static double[] copy(double[] x)
public static double[][] transpose(double[][] A)
public static double[] constant(double val,
int n)
public static void print(double[] x)
public static void println(double[] x)
public static void println(double[][] x)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||