|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simBio.util.numerical.methods.LUdecomposition
public final class LUdecomposition
This class provides LU decomposition method to solve system of linear equations.
| Method Summary | |
|---|---|
protected static double |
decomposite(int n,
double[] lu,
int[] ip)
Decomposite the specified array to LU array. |
static double |
solve(double[] a,
double[] b,
double[] x)
Solves the specified linear equations. |
protected static void |
solveWithLU(int n,
double[] lu,
double[] b,
int[] ip,
double[] x)
Solves the system of linear equations with LU array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double solve(double[] a,
double[] b,
double[] x)
a - The coefficient matrix. Its elements are not changed.b - The vector of the right-hand side. Its elements are not
changed.x - The vector to be stored the solution.
protected static double decomposite(int n,
double[] lu,
int[] ip)
n - The order of the system.lu - The array to be decomposited.ip - The vector to be stored pivoted lines.
protected static void solveWithLU(int n,
double[] lu,
double[] b,
int[] ip,
double[] x)
n - The order of the system.lu - The LU decomposited array.b - The vector of the right-hand side.ip - The vector of pivoted lines.x - The vector to be stored the solution.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||