|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface Array
配列データを表わすインターフェースです。
メソッドの概要 | |
---|---|
Array |
appendDown(Array value)
下側に行列 value を付けた行列を生成します。 |
Array |
appendRight(Array value)
右側に value を付けた行列を生成します。 |
BooleanMatrix |
compareElementWise(String operator,
Array opponent)
opponent と成分毎にoperator で指定された演算子で比較した結果を
BooleanMatrix で返します。 |
void |
copy(Array original)
original の成分をコピーします。 |
Array |
diagonalToVector()
対角成分をからなる縦ベクトルを生成します。 |
Array |
flipLeftRight()
左右の列を反転した行列を生成します。 |
Array |
flipUpDown()
上下の行を反転した行列を生成します。 |
Array |
getColumnVector(int column)
指定された列を返します。 |
Array |
getColumnVectors(int columnMin,
int columnMax)
columnMin 列からcolumnMax 列までの部分行列を生成します。 |
Array |
getColumnVectors(IntMatrix columnIndex)
columnIndex で指定された列からなる部分行列を生成します。 |
Array |
getRowVector(int row)
指定された行を返します。 |
Array |
getRowVectors(int rowMin,
int rowMax)
rowMin 行からrowMax 行までの部分行列を生成します。 |
Array |
getRowVectors(IntMatrix rowIndex)
rowIndex で指定された行からなる部分行列を生成します。 |
Array |
getSubMatrix(int row,
int column,
Grid block)
block のサイズで分割したときのrow 行、
column 列番目のブロック行列を返します。 |
Array |
getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
部分行列A(rowMin:rowMax,columnMin:columnMax)を生成します。 |
Array |
getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
rowMin行からrowMax行目で、columnIndexで指定された列を成分とする部分行列を生成します。 |
Array |
getSubMatrix(int row,
IntMatrix columnIndex)
row 行ベクトルのcolumnIndex で指定された成分からなる行ベクトルを生成します。 |
Array |
getSubMatrix(IntMatrix rowIndex,
int column)
column 列ベクトルのrowIndex で指定された成分からなる列ベクトルを生成します。 |
Array |
getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
columnMin 列からcolumnMax 列まで、rowIndex
で指定された行を成分とする部分行列を生成します。 |
Array |
getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
rowIndex で指定された行、columnIndex
で指定された列を成分とする部分行列を生成します。 |
Array |
getSubVector(int min,
int max)
成分を行毎に数え、 min からmax までの成分からなるベクトルを生成します。 |
Array |
getSubVector(int min,
int max,
int by)
成分を行毎に数え、 min からmax までのby
飛び成分からなるベクトルを生成します。 |
Array |
getSubVector(IntMatrix index)
行毎に数え index で指定した成分を成分とする部分行列を生成します。 |
Array |
reshape(int newRowSize,
int newColumnSize)
サイズを newRowSize *newColumnSize に変更した行列を生成します。 |
Array |
resize(int newRowSize,
int newColmunSize)
newRowSize *newColumnSize にサイズ変更します。 |
Array |
rotateLeft(int number)
全ての成分を左方向へ回転します。 |
Array |
rotateUp(int number)
全ての成分を上方向へ回転します。 |
void |
setColumnVector(int column,
Array source)
指定された列に source を代入します。 |
void |
setColumnVectors(int columnMin,
int columnMax,
Array source)
columnMin 列からcolumnMax 列にsource を代入します。 |
void |
setColumnVectors(IntMatrix columnIndex,
Array source)
指定された列に source を代入します。 |
void |
setRowVector(int row,
Array source)
指定された行に source を代入します。 |
void |
setRowVectors(int rowMin,
int rowMax,
Array source)
rowMin 行からrowMax 行にsource を代入します。 |
void |
setRowVectors(IntMatrix rowIndex,
Array source)
指定された複数の行に source を代入します。 |
void |
setSubMatrix(int row,
int column,
Grid block,
Array source)
指定した成分に行列 source を代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax,
Array source)
指定した成分に行列 source を代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Array source)
rowMin 列目からrowMax 列目の成分のcolumnIndex
で指定された行の成分に行列source を代入します。 |
void |
setSubMatrix(int row,
IntMatrix columnIndex,
Array source)
row 列目の成分のcolumnIndex で指定された行の成分に行列source
code>を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int column,
Array source)
rowIndex で指定した行のcolumn 列に行列source
を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Array source)
rowIndex で指定した行のcolumnMin 列からcolumnMax
列までの行列source を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Array source)
rowIndex で指定した行のcolumnIndex で指定した列に行列source
code>を代入します。 |
void |
setSubVector(int min,
int max,
Array source)
成分を行毎に数え、 min からmax までにsource の成分を代入します。 |
void |
setSubVector(int min,
int max,
int by,
Array source)
成分を行毎に数え、 min からmax までの成分にby 飛びで
source の成分を代入します。 |
void |
setSubVector(IntMatrix index,
Array source)
index で指定した各成分に行列source の成分に代入します。 |
Array |
transpose()
転置行列(this T )を生成します。 |
Array |
vectorToDiagonal()
縦ベクトルまたは横ベクトルの各成分を対角成分に持つ行列を生成します。 |
インタフェース org.mklab.nfc.matrix.Grid から継承されたメソッド |
---|
clone, count, exchangeColumn, exchangeRow, getColumnSize, getElementAlignment, getElementFormat, getPrintingElementsString, getPrintingString, getRowSize, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, isZero, length, print, print, print, printElements, printElements, removeColumnVector, removeColumnVectors, removeColumnVectors, removeRowVector, removeRowVectors, removeRowVectors, setElementAlignment, setElementFormat |
メソッドの詳細 |
---|
void copy(Array original)
original
の成分をコピーします。
original
- コピーする行列Array appendDown(Array value)
value
を付けた行列を生成します。
value
- 付ける行列
value
をつけた行列Array appendRight(Array value)
value
を付けた行列を生成します。
value
- 付ける複素数
value
を付けた行列Array transpose()
Array getSubMatrix(int rowMin, int rowMax, int columnMin, int columnMax)
rowMin
- 行の始まりrowMax
- 行の終わりcolumnMin
- 列の始まりcolumnMax
- 列の終わり
Array getSubMatrix(IntMatrix rowIndex, int column)
column
列ベクトルのrowIndex
で指定された成分からなる列ベクトルを生成します。
rowIndex
- 行指定ベクトルcolumn
- 列指定
Array getSubMatrix(IntMatrix rowIndex, int columnMin, int columnMax)
columnMin
列からcolumnMax
列まで、rowIndex
で指定された行を成分とする部分行列を生成します。
rowIndex
- 行指定ベクトルcolumnMin
- 列のはじまりcolumnMax
- 列の終わり
Array getSubMatrix(int row, IntMatrix columnIndex)
row
行ベクトルのcolumnIndex
で指定された成分からなる行ベクトルを生成します。
row
- 行指定columnIndex
- 列指定ベクトル
Array getSubMatrix(int rowMin, int rowMax, IntMatrix columnIndex)
rowMin
- 行の始まりrowMax
- 行の終わりcolumnIndex
- 列指定ベクトル
Array getSubMatrix(IntMatrix rowIndex, IntMatrix columnIndex)
rowIndex
で指定された行、columnIndex
で指定された列を成分とする部分行列を生成します。
rowIndex
- 行指定ベクトルcolumnIndex
- 列指定ベクトル
Array getSubVector(IntMatrix index)
index
で指定した成分を成分とする部分行列を生成します。
index
- 行番号を含むベクトル
Array diagonalToVector()
Array vectorToDiagonal()
Array reshape(int newRowSize, int newColumnSize)
newRowSize
*newColumnSize
に変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize
*
newColumnSize
個の成分を持たなければ、エラーとなります。
newRowSize
- 行の数newColumnSize
- 列の数
Array resize(int newRowSize, int newColmunSize)
newRowSize
*newColumnSize
にサイズ変更します。
reshape(int, int)
とは異なり、成分位置の変更はせず, 自身より大きなサイズに変更する時は、
0が埋められ、自身より小さなサイズに変更する時は余分な成分は切り取られます。
newRowSize
- 指定行の数newColmunSize
- 指定列の数
Array getRowVector(int row)
row
- 行番号
Array getRowVectors(int rowMin, int rowMax)
rowMin
行からrowMax
行までの部分行列を生成します。
rowMin
- 行の始まりrowMax
- 行のおわり
Array getRowVectors(IntMatrix rowIndex)
rowIndex
で指定された行からなる部分行列を生成します。
rowIndex
- 取り出す行番号
Array getColumnVector(int column)
column
- 列番号
Array getColumnVectors(int columnMin, int columnMax)
columnMin
列からcolumnMax
列までの部分行列を生成します。
columnMin
- 列の始まりcolumnMax
- 列の終わり
Array getColumnVectors(IntMatrix columnIndex)
columnIndex
で指定された列からなる部分行列を生成します。
columnIndex
- 取り出す列番号
Array getSubMatrix(int row, int column, Grid block)
block
のサイズで分割したときのrow
行、
column
列番目のブロック行列を返します。
row
- 行番号column
- 列番号block
- 基本ブロック行列
Array getSubVector(int min, int max)
min
からmax
までの成分からなるベクトルを生成します。
min
- 成分取り出し開始位置max
- 成分取り出し終了位置
Array getSubVector(int min, int max, int by)
min
からmax
までのby
飛び成分からなるベクトルを生成します。
min
- 成分取り出し開始位置max
- 成分取り出し終了位置by
- 飛ばす数
BooleanMatrix compareElementWise(String operator, Array opponent)
opponent
と成分毎にoperator
で指定された演算子で比較した結果を
BooleanMatrix
で返します。
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent
- 比較対象
BooleanMatrix
Array flipLeftRight()
Array flipUpDown()
Array rotateUp(int number)
number
- 回転で進む数
Array rotateLeft(int number)
number
- 回転で進む数
void setRowVector(int row, Array source)
source
を代入します。
row
- 行番号source
- 代入する行列void setRowVectors(int rowMin, int rowMax, Array source)
rowMin
行からrowMax
行にsource
を代入します。
rowMin
- 行番号(始まり)rowMax
- 行番号(おわり)source
- 代入する行列void setRowVectors(IntMatrix rowIndex, Array source)
source
を代入します。
rowIndex
- 行番号source
- 代入する行列void setColumnVector(int column, Array source)
source
を代入します。
column
- 列番号source
- 代入する行列void setColumnVectors(int columnMin, int columnMax, Array source)
columnMin
列からcolumnMax
列にsource
を代入します。
columnMin
- 列の始まりcolumnMax
- 列のおわりsource
- 代入する行列void setColumnVectors(IntMatrix columnIndex, Array source)
source
を代入します。
columnIndex
- 列番号source
- 代入する行列void setSubMatrix(int rowMin, int rowMax, int columnMin, int columnMax, Array source)
source
を代入します。
rowMin
- 開始行番号rowMax
- 終了行番号columnMin
- 開始列番号columnMax
- 終了列番号source
- 代入する行列void setSubMatrix(int row, int column, Grid block, Array source)
source
を代入します。
row
- 行番号column
- 列番号block
- 基本ブロック行列source
- 代入する行列void setSubMatrix(IntMatrix rowIndex, int column, Array source)
rowIndex
で指定した行のcolumn
列に行列source
を代入します。
rowIndex
- 行番号のリストcolumn
- 列番号source
- 代入する行列void setSubMatrix(IntMatrix rowIndex, int columnMin, int columnMax, Array source)
rowIndex
で指定した行のcolumnMin
列からcolumnMax
列までの行列source
を代入します。
rowIndex
- 行番号のリストcolumnMin
- 列の始まりcolumnMax
- 列の終わりsource
- 代入する行列void setSubMatrix(int row, IntMatrix columnIndex, Array source)
row
列目の成分のcolumnIndex
で指定された行の成分に行列source
code>を代入します。
- パラメータ:
row
- 行番号columnIndex
- 列番号のリストsource
- 代入する行列
void setSubMatrix(int rowMin, int rowMax, IntMatrix columnIndex, Array source)
rowMin
列目からrowMax
列目の成分のcolumnIndex
で指定された行の成分に行列source
を代入します。
rowMin
- 行の始まりrowMax
- 行の終わりcolumnIndex
- 列番号のリストsource
- 代入する行列void setSubMatrix(IntMatrix rowIndex, IntMatrix columnIndex, Array source)
rowIndex
で指定した行のcolumnIndex
で指定した列に行列source
code>を代入します。
- パラメータ:
rowIndex
- 行番号のリストcolumnIndex
- 列番号のリストsource
- 代入する行列
void setSubVector(IntMatrix index, Array source)
index
で指定した各成分に行列source
の成分に代入します。
index
- 成分の番号のリストsource
- 代入する行列void setSubVector(int min, int max, Array source)
min
からmax
までにsource
の成分を代入します。
min
- 成分の代入開始位置max
- 成分の代入終了位置source
- 代入するベクトルvoid setSubVector(int min, int max, int by, Array source)
min
からmax
までの成分にby
飛びで
source
の成分を代入します。
min
- 成分の代入開始位置max
- 成分の代入終了位置by
- 飛ばす数source
- 代入するベクトル
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |