public interface Matrix
extends java.lang.Cloneable
修飾子とタイプ | メソッドと説明 |
---|---|
void |
add(int row,
int column,
double value)
成分に値を加える
|
void |
add(Matrix m)
行列を加える
|
java.lang.Object |
clone()
オブジェクトのコピーを返す
|
int |
columnCount()
列の数を返す
|
double |
determinant()
行列式を返す
|
Matrix |
eliminateRowColumn(int row,
int column)
指定した行・列を消去した行列を返す
|
Matrix |
extructRowColumn(int size,
int[] rows,
int[] columns)
指定した行・列を取り出した行列を返す
|
double |
get(int row,
int column)
成分を返す
|
Vector |
getColumnVector(int column)
列ベクトルを返す
|
Vector[] |
getColumnVectors()
列ベクトルを返す
|
Vector |
getRowVector(int row)
行ベクトルを返す
|
Vector[] |
getRowVectors()
行ベクトルを返す
|
void |
init()
行列を初期化する
|
boolean |
isSymmetry()
行列が対称かどうかを判別する
|
void |
mul(double value)
スカラーを掛ける
|
int |
rowCount()
行の数を返す
|
void |
set(int row,
int column,
double value)
成分に値を設定する
|
java.lang.String[] |
toStrings()
データ文字列を格納した配列を返す
|
double |
trace()
トレースを返す
|
Matrix |
transposition()
転置行列を返す
|
int rowCount()
int columnCount()
double get(int row, int column)
row
- 行column
- 列void set(int row, int column, double value)
row
- 行column
- 列value
- 設定する値void add(int row, int column, double value)
row
- 行column
- 列value
- 加える値void add(Matrix m)
m
- 加える行列void mul(double value)
value
- 掛けるスカラー値void init()
Matrix transposition()
Matrix eliminateRowColumn(int row, int column)
row
- 行column
- 列Matrix extructRowColumn(int size, int[] rows, int[] columns)
size
- 正方行列の大きさrows
- 行のインデックスを格納した配列columns
- 列のインデックスを格納した配列Vector getRowVector(int row)
row
- 行のインデックスVector getColumnVector(int column)
column
- 列のインデックスVector[] getRowVectors()
Vector[] getColumnVectors()
boolean isSymmetry()
double trace()
double determinant()
java.lang.Object clone()
java.lang.String[] toStrings()