public interface MatrixSolver extends Matrix
修飾子とタイプ | メソッドと説明 |
---|---|
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 法で連立方程式の解を求める
|
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
- 逆行列が求まらないとき