org.simBio.util.numerical.methods
クラス LUdecomposition

java.lang.Object
  上位を拡張 org.simBio.util.numerical.methods.LUdecomposition

public final class LUdecomposition
extends java.lang.Object

This class provides LU decomposition method to solve system of linear equations.

バージョン:
$Revision: 1.1 $
作成者:
SHIMAYOSHI Takao

メソッドの概要
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.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

solve

public static double solve(double[] a,
                           double[] b,
                           double[] x)
Solves the specified linear equations.

パラメータ:
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.
戻り値:
The determinant of the coefficient matrix.

decomposite

protected static double decomposite(int n,
                                    double[] lu,
                                    int[] ip)
Decomposite the specified array to LU array.

パラメータ:
n - The order of the system.
lu - The array to be decomposited.
ip - The vector to be stored pivoted lines.
戻り値:
The determinant of LU array.

solveWithLU

protected static void solveWithLU(int n,
                                  double[] lu,
                                  double[] b,
                                  int[] ip,
                                  double[] x)
Solves the system of linear equations with LU array.

パラメータ:
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.


???(C) 2002-2007 ?????????????????????