|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface MatrixSolver
連立方程式の解を求めるための行列インターフェイス
p = A x の x を求める
メソッドの概要 | |
---|---|
MatrixSolver |
extruct(int size,
int[] rows,
int[] columns)
指定した行・列を取り出した行列を返す |
Matrix |
getLU(double tolerance)
LU 分解をする |
MatrixSolver |
inverse()
逆行列を求める |
Vector |
solve(Vector p,
MatrixSolveMethod method)
連立方程式の解を求める |
Vector |
solveByCG(Vector p,
double tolerance)
共役勾配法で連立方程式の解を求める |
Vector |
solveByCG(Vector p,
double tolerance,
int iterMax)
共役勾配法で連立方程式の解を求める |
Vector |
solveByGauss(Vector p,
double tolerance)
ガウス消去法で連立方程式の解を求める |
Vector |
solveByGaussJordan(Vector p,
double tolerance)
Gauss - Jordan 法で連立方程式の解を求める |
Vector |
solveByILUCG(Vector p,
double tolerance)
不完全 LU 分解共役勾配法で連立方程式の解を求める |
Vector |
solveByILUCG(Vector p,
double tolerance,
int iterMax)
不完全 LU 分解共役勾配法で連立方程式の解を求める |
Vector |
solveByLU(Vector p,
double tolerance)
LU 分解法で連立方程式の解を求める |
Vector |
solveBySOR(Vector p,
double tolerance,
int iterMax,
double relax)
SOR 法で連立方程式の解を求める |
インタフェース figure.Matrix から継承されたメソッド |
---|
add, add, clone, columnCount, determinant, eliminateRowColumn, extructRowColumn, get, getColumnVector, getColumnVectors, getRowVector, getRowVectors, init, isSymmetry, mul, rowCount, set, toStrings, trace, transposition |
メソッドの詳細 |
---|
MatrixSolver extruct(int size, int[] rows, int[] columns)
size
- 正方行列の大きさrows
- 行のインデックスを格納した配列columns
- 列のインデックスを格納した配列
Vector solve(Vector p, MatrixSolveMethod method) throws MatrixSolveException
p
- ベクトル pmethod
- 行列解法
MatrixSolveException
- 連立方程式の解が求まらないときVector solveByGauss(Vector p, double tolerance) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値
MatrixSolveException
- 連立方程式の解が求まらないときVector solveByGaussJordan(Vector p, double tolerance) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値
MatrixSolveException
- 連立方程式の解が求まらないときMatrix getLU(double tolerance) throws MatrixSolveException
tolerance
- 閾値
MatrixSolveException
- LU 分解ができないときVector solveByLU(Vector p, double tolerance) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値
MatrixSolveException
- 連立方程式の解が求まらないときVector solveBySOR(Vector p, double tolerance, int iterMax, double relax) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値iterMax
- 反復回数の上限relax
- 緩和係数
MatrixSolveException
- 連立方程式の解が求まらないときVector solveByCG(Vector p, double tolerance) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値
MatrixSolveException
- 連立方程式の解が求まらないときVector solveByCG(Vector p, double tolerance, int iterMax) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値iterMax
- 反復回数の上限
MatrixSolveException
- 連立方程式の解が求まらないときVector solveByILUCG(Vector p, double tolerance) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値
MatrixSolveException
- 連立方程式の解が求まらないときVector solveByILUCG(Vector p, double tolerance, int iterMax) throws MatrixSolveException
p
- ベクトル ptolerance
- 閾値iterMax
- 反復回数の上限
MatrixSolveException
- 連立方程式の解が求まらないときMatrixSolver inverse() throws MatrixSolveException
MatrixSolveException
- 逆行列が求まらないとき
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |