|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<A>
org.mklab.nfc.matrix.AbstractArray<A>
A
- 配列の型public abstract class AbstractArray<A extends Array>
配列データを扱うためのクラスです。
コンストラクタの概要 | |
---|---|
AbstractArray(int rowSize,
int columnSize)
新しく生成された AbstractArray オブジェクトを初期化します。 |
メソッドの概要 | |
---|---|
A |
flipLeftRight()
左右の列を反転した行列を生成します。 |
A |
flipUpDown()
上下の行を反転した行列を生成します。 |
A |
getColumnVector(int column)
指定された列を返します。 |
A |
getColumnVectors(int columnMin,
int columnMax)
columnMin 列からcolumnMax 列までの部分行列を生成します。 |
A |
getColumnVectors(IntMatrix columnIndex)
columnIndex で指定された列からなる部分行列を生成します。 |
A |
getRowVector(int row)
指定された行を返します。 |
A |
getRowVectors(int rowMin,
int rowMax)
rowMin 行からrowMax 行までの部分行列を生成します。 |
A |
getRowVectors(IntMatrix rowIndex)
rowIndex で指定された行からなる部分行列を生成します。 |
A |
getSubMatrix(int row,
int column,
Grid block)
block のサイズで分割したときのrow 行、
column 列番目のブロック行列を返します。 |
A |
getSubMatrix(int row,
IntMatrix columnIndex)
row 行ベクトルのcolumnIndex で指定された成分からなる行ベクトルを生成します。 |
A |
getSubMatrix(IntMatrix rowIndex,
int column)
column 列ベクトルのrowIndex で指定された成分からなる列ベクトルを生成します。 |
A |
getSubVector(int min,
int max)
成分を行毎に数え、 min からmax までの成分からなるベクトルを生成します。 |
A |
getSubVector(int min,
int max,
int by)
成分を行毎に数え、 min からmax までのby
飛び成分からなるベクトルを生成します。 |
A |
rotateLeft(int number)
全ての成分を左方向へ回転します。 |
A |
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 を代入します。 |
protected abstract void |
setSubMatrix(int rowTo,
int columnTo,
Array source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
rowTo 行columnTo 列を始点として、行列source の
rowMin 行からrowMax 行かつ
columnMin 列からcolumnMax 列までの部分行列を代入します。 |
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 row,
IntMatrix columnIndex,
Array source)
row 列目の成分のcolumnIndex で指定された行の成分に行列source
code>を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int column,
Array source)
rowIndex で指定した行のcolumn 列に行列source
を代入します。 |
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 の成分を代入します。 |
クラス java.lang.Object から継承されたメソッド |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
インタフェース org.mklab.nfc.matrix.Array から継承されたメソッド |
---|
appendDown, appendRight, compareElementWise, copy, diagonalToVector, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, reshape, resize, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector, transpose, 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 |
コンストラクタの詳細 |
---|
public AbstractArray(int rowSize, int columnSize)
AbstractArray
オブジェクトを初期化します。
rowSize
- 行の数columnSize
- 列の数メソッドの詳細 |
---|
public A getRowVector(int row)
Array
の記述:
Array
内の getRowVector
row
- 行番号
Array.getRowVector(int)
public A getRowVectors(int rowMin, int rowMax)
Array
の記述:rowMin
行からrowMax
行までの部分行列を生成します。
Array
内の getRowVectors
rowMin
- 行の始まりrowMax
- 行のおわり
Array.getRowVectors(int, int)
public A getRowVectors(IntMatrix rowIndex)
Array
の記述:rowIndex
で指定された行からなる部分行列を生成します。
Array
内の getRowVectors
rowIndex
- 取り出す行番号
Array.getRowVectors(org.mklab.nfc.matrix.IntMatrix)
public A getColumnVector(int column)
Array
の記述:
Array
内の getColumnVector
column
- 列番号
Array.getColumnVector(int)
public A getColumnVectors(int columnMin, int columnMax)
Array
の記述:columnMin
列からcolumnMax
列までの部分行列を生成します。
Array
内の getColumnVectors
columnMin
- 列の始まりcolumnMax
- 列の終わり
Array.getColumnVectors(int, int)
public A getColumnVectors(IntMatrix columnIndex)
Array
の記述:columnIndex
で指定された列からなる部分行列を生成します。
Array
内の getColumnVectors
columnIndex
- 取り出す列番号
Array.getColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public A getSubMatrix(int row, int column, Grid block)
Array
の記述:block
のサイズで分割したときのrow
行、
column
列番目のブロック行列を返します。
Array
内の getSubMatrix
row
- 行番号column
- 列番号block
- 基本ブロック行列
Array.getSubMatrix(int, int, org.mklab.nfc.matrix.Grid)
public A getSubMatrix(IntMatrix rowIndex, int column)
Array
の記述:column
列ベクトルのrowIndex
で指定された成分からなる列ベクトルを生成します。
Array
内の getSubMatrix
rowIndex
- 行指定ベクトルcolumn
- 列指定
Array.getSubMatrix(org.mklab.nfc.matrix.IntMatrix, int)
public A getSubMatrix(int row, IntMatrix columnIndex)
Array
の記述:row
行ベクトルのcolumnIndex
で指定された成分からなる行ベクトルを生成します。
Array
内の getSubMatrix
row
- 行指定columnIndex
- 列指定ベクトル
Array.getSubMatrix(int, org.mklab.nfc.matrix.IntMatrix)
public A getSubVector(int min, int max)
Array
の記述:min
からmax
までの成分からなるベクトルを生成します。
Array
内の getSubVector
min
- 成分取り出し開始位置max
- 成分取り出し終了位置
Array.getSubVector(int, int)
public A getSubVector(int min, int max, int by)
Array
の記述:min
からmax
までのby
飛び成分からなるベクトルを生成します。
Array
内の getSubVector
min
- 成分取り出し開始位置max
- 成分取り出し終了位置by
- 飛ばす数
Array.getSubVector(int, int, int)
public A flipLeftRight()
Array
の記述:
Array
内の flipLeftRight
Array.flipLeftRight()
public A flipUpDown()
Array
の記述:
Array
内の flipUpDown
Array.flipUpDown()
public A rotateUp(int number)
Array
の記述:
Array
内の rotateUp
number
- 回転で進む数
Array.rotateUp(int)
public A rotateLeft(int number)
Array
の記述:
Array
内の rotateLeft
number
- 回転で進む数
Array.rotateLeft(int)
public void setRowVector(int row, Array source)
Array
の記述:source
を代入します。
Array
内の setRowVector
row
- 行番号source
- 代入する行列Array.setRowVector(int, org.mklab.nfc.matrix.Array)
public void setRowVectors(int rowMin, int rowMax, Array source)
Array
の記述:rowMin
行からrowMax
行にsource
を代入します。
Array
内の setRowVectors
rowMin
- 行番号(始まり)rowMax
- 行番号(おわり)source
- 代入する行列Array.setRowVectors(int, int, org.mklab.nfc.matrix.Array)
public void setRowVectors(IntMatrix rowIndex, Array source)
Array
の記述:source
を代入します。
Array
内の setRowVectors
rowIndex
- 行番号source
- 代入する行列Array.setRowVectors(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.Array)
public void setColumnVector(int column, Array source)
Array
の記述:source
を代入します。
Array
内の setColumnVector
column
- 列番号source
- 代入する行列Array.setColumnVector(int, org.mklab.nfc.matrix.Array)
public void setColumnVectors(int columnMin, int columnMax, Array source)
Array
の記述:columnMin
列からcolumnMax
列にsource
を代入します。
Array
内の setColumnVectors
columnMin
- 列の始まりcolumnMax
- 列のおわりsource
- 代入する行列Array.setColumnVectors(int, int, org.mklab.nfc.matrix.Array)
public void setColumnVectors(IntMatrix columnIndex, Array source)
Array
の記述:source
を代入します。
Array
内の setColumnVectors
columnIndex
- 列番号source
- 代入する行列Array.setColumnVectors(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.Array)
public void setSubMatrix(int rowMin, int rowMax, int columnMin, int columnMax, Array source)
Array
の記述:source
を代入します。
Array
内の setSubMatrix
rowMin
- 開始行番号rowMax
- 終了行番号columnMin
- 開始列番号columnMax
- 終了列番号source
- 代入する行列Array.setSubMatrix(int, int, int, int,
org.mklab.nfc.matrix.Array)
public void setSubMatrix(int row, int column, Grid block, Array source)
Array
の記述:source
を代入します。
Array
内の setSubMatrix
row
- 行番号column
- 列番号block
- 基本ブロック行列source
- 代入する行列Array.setSubMatrix(int, int, org.mklab.nfc.matrix.Grid,
org.mklab.nfc.matrix.Array)
public void setSubMatrix(IntMatrix rowIndex, int column, Array source)
Array
の記述:rowIndex
で指定した行のcolumn
列に行列source
を代入します。
Array
内の setSubMatrix
rowIndex
- 行番号のリストcolumn
- 列番号source
- 代入する行列Array.setSubMatrix(org.mklab.nfc.matrix.IntMatrix, int,
org.mklab.nfc.matrix.Array)
public void setSubMatrix(int row, IntMatrix columnIndex, Array source)
Array
の記述:row
列目の成分のcolumnIndex
で指定された行の成分に行列source
code>を代入します。
- 定義:
- インタフェース
Array
内の setSubMatrix
- パラメータ:
row
- 行番号columnIndex
- 列番号のリストsource
- 代入する行列- 関連項目:
Array.setSubMatrix(int, org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.Array)
protected abstract void setSubMatrix(int rowTo, int columnTo, Array source, int rowMin, int rowMax, int columnMin, int columnMax)
rowTo
行columnTo
列を始点として、行列source
の
rowMin
行からrowMax
行かつ
columnMin
列からcolumnMax
列までの部分行列を代入します。
rowTo
- 変更開始行columnTo
- 変更開始列source
- 行列rowMin
- コピー開始行rowMax
- コピー終了行columnMin
- コピー開始列columnMax
- コピー終了列public void setSubVector(int min, int max, Array source)
Array
の記述:min
からmax
までにsource
の成分を代入します。
Array
内の setSubVector
min
- 成分の代入開始位置max
- 成分の代入終了位置source
- 代入するベクトルArray.setSubVector(int, int, org.mklab.nfc.matrix.Array)
public void setSubVector(int min, int max, int by, Array source)
Array
の記述:min
からmax
までの成分にby
飛びで
source
の成分を代入します。
Array
内の setSubVector
min
- 成分の代入開始位置max
- 成分の代入終了位置by
- 飛ばす数source
- 代入するベクトルArray.setSubVector(int, int, int, org.mklab.nfc.matrix.Array)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |