|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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 - 代入する値
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||