|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
E
- 成分の型public interface BaseArrayOperator<E extends ArrayElement<E>>
ArrayElement
を成分とする配列を表わすインターフェースです。
メソッドの概要 | |
---|---|
BooleanMatrix |
compareElementWise(String operator,
BaseArrayOperator<?> opponent)
配列 opponent の各成分と成分毎にoperator で指定された演算子で比較し,
それぞれの結果を成分とするBooleanMatrix を返します。 |
void |
copy(BaseArrayOperator<?> source)
各成分に配列 source 各成分をコピーします。 |
E |
getElement(int index)
成分を行毎に数え index で指定した成分を返します。 |
E |
getElement(int row,
int column)
row 行column 列の成分を返します。 |
void |
setElement(int row,
int column,
ArrayElement<?> value)
指定した成分に value を代入します。 |
void |
setSubMatrix(int rowTo,
int columnTo,
BaseArrayOperator<?> source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
配列 source のrowMin 行からrowMax行 、
columnMin 列からcolumnMax 列までの部分配列を、
rowTo 行columnTo 列を始点として代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
BaseArrayOperator<?> source)
rowMin 列からrowMax 列目の成分のcolumnIndex
で指定された行に、 配列source の成分を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
BaseArrayOperator<?> source)
rowIndex で指定した行のcolumnMin 列からcolumnMax
列までの 配列source を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
BaseArrayOperator<?> source)
rowIndex で指定した行のcolumnIndex で指定した列に配列source
code>を代入します。 |
void |
setSubVector(IntMatrix index,
BaseArrayOperator<?> source)
index |
インタフェース 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(BaseArrayOperator<?> source)
source
各成分をコピーします。
source
- コピー元の配列BooleanMatrix compareElementWise(String operator, BaseArrayOperator<?> opponent)
opponent
の各成分と成分毎にoperator
で指定された演算子で比較し,
それぞれの結果を成分とするBooleanMatrix
を返します。
operator
- 比較演算子(".==", ".!=")opponent
- 比較対象
void setSubMatrix(int rowTo, int columnTo, BaseArrayOperator<?> source, int rowMin, int rowMax, int columnMin, int columnMax)
source
のrowMin
行からrowMax行
、
columnMin
列からcolumnMax
列までの部分配列を、
rowTo
行columnTo
列を始点として代入します。
rowTo
- 代入開始行columnTo
- 代入開始列source
- 代入する配列rowMin
- コピー開始行rowMax
- コピー終了行columnMin
- コピー開始列columnMax
- コピー終了列void setSubMatrix(IntMatrix rowIndex, int columnMin, int columnMax, BaseArrayOperator<?> source)
rowIndex
で指定した行のcolumnMin
列からcolumnMax
列までの 配列source
を代入します。
rowIndex
- 列指定columnMin
- 行指定columnMax
- 行指定source
- 行列void setSubMatrix(int rowMin, int rowMax, IntMatrix columnIndex, BaseArrayOperator<?> source)
rowMin
列からrowMax
列目の成分のcolumnIndex
で指定された行に、 配列source
の成分を代入します。
rowMin
- 行指定rowMax
- 行指定columnIndex
- 列指定ベクトルsource
- 代入する配列void setSubMatrix(IntMatrix rowIndex, IntMatrix columnIndex, BaseArrayOperator<?> source)
rowIndex
で指定した行のcolumnIndex
で指定した列に配列source
code>を代入します。
- パラメータ:
rowIndex
- 行指定columnIndex
- 列指定source
- 配列
void setSubVector(IntMatrix index, BaseArrayOperator<?> source)
indexで指定した各成分に配列source
の成分を代入します。
- パラメータ:
index
- 成分指定source
- 代入する部分ベクトル
E getElement(int row, int column)
row
行column
列の成分を返します。
row
- 行番号column
- 列番号
E getElement(int index)
index
で指定した成分を返します。
index
- 成分の番号
void setElement(int row, int column, ArrayElement<?> value)
value
を代入します。
row
- 行番号column
- 列番号value
- 代入する値
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |