|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectfigure.AbstractMatrix
figure.DefaultMatrix
public class DefaultMatrix
標準行列クラス
フィールドの概要 | |
---|---|
protected int |
columnCount
列の数 |
protected double[][] |
data
成分を格納する配列 |
protected int |
rowCount
行の数 |
クラス figure.AbstractMatrix から継承されたフィールド |
---|
dataMax, TOLERANCE |
コンストラクタの概要 | |
---|---|
DefaultMatrix(int size)
正方行列を構築する |
|
DefaultMatrix(int rowCount,
int columnCount)
行列を構築する |
メソッドの概要 | |
---|---|
void |
add(int row,
int column,
double value)
成分に値を加える |
void |
add(Matrix m)
行列を加える |
java.lang.Object |
clone()
オブジェクトのコピーを返す |
int |
columnCount()
列の数を返す |
Matrix |
eigenvalue(int iterMax)
Jacobie 法で固有値を求める |
Matrix |
eliminateRowColumn(int row,
int column)
指定した行・列を消去した行列を返す |
Matrix |
extructRowColumn(int size,
int[] rows,
int[] columns)
指定した行・列を取り出した行列を返す |
double |
get(int row,
int column)
成分を返す |
void |
init()
行列を初期化する |
boolean |
isSymmetry()
行列が対称かどうかを判別する |
void |
mul(double value)
スカラーを掛ける |
static Matrix |
mul(Matrix left,
Matrix right)
行列の積を計算する |
int |
rowCount()
行の数を返す |
void |
set(int row,
int column,
double value)
成分に値を設定する |
Matrix |
transposition()
転置行列を返す |
static Matrix |
unitMatrix(int size)
単位行列を返す |
クラス figure.AbstractMatrix から継承されたメソッド |
---|
checkRange, determinant, equals, getColumnVector, getColumnVectors, getRowVector, getRowVectors, hashCode, toString, toStrings, trace |
クラス java.lang.Object から継承されたメソッド |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
protected int rowCount
protected int columnCount
protected double[][] data
コンストラクタの詳細 |
---|
public DefaultMatrix(int size)
size
- 行列の大きさpublic DefaultMatrix(int rowCount, int columnCount)
rowCount
- 行の数columnCount
- 列の数メソッドの詳細 |
---|
public int rowCount()
public int columnCount()
public double get(int row, int column)
row
- 行column
- 列
public void set(int row, int column, double value)
row
- 行column
- 列value
- 設定する値public void add(int row, int column, double value)
row
- 行column
- 列value
- 加える値public void add(Matrix m)
m
- 加える行列public void mul(double value)
value
- 掛けるスカラー値public static Matrix mul(Matrix left, Matrix right)
left
- 左側の行列right
- 右側の行列
public void init()
public static Matrix unitMatrix(int size)
size
- 正方行列の大きさ
public Matrix transposition()
public Matrix eliminateRowColumn(int row, int column)
row
- 行column
- 列
public Matrix extructRowColumn(int size, int[] rows, int[] columns)
size
- 正方行列の大きさrows
- 行のインデックスを格納した配列columns
- 列のインデックスを格納した配列
public boolean isSymmetry()
Matrix
内の isSymmetry
AbstractMatrix
内の isSymmetry
public Matrix eigenvalue(int iterMax)
iterMax
- 反復回数の上限public java.lang.Object clone()
Matrix
内の clone
AbstractMatrix
内の clone
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |