org.mklab.nfc.matrix
インタフェース BaseArrayOperator<E extends ArrayElement<E>>

型パラメータ:
E - 成分の型
すべてのスーパーインタフェース:
Array, Grid
既知の実装クラスの一覧:
AdjacencyConstantMatrix, AdjacencyMatrix, BaseArray

public interface BaseArrayOperator<E extends ArrayElement<E>>
extends Array

ArrayElementを成分とする配列を表わすインターフェースです。

バージョン:
$Revision: 1.1 $, 2004/07/05
作成者:
Koga Laboratory

メソッドの概要
 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)
          rowcolumn列の成分を返します。
 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)
          配列sourcerowMin行からrowMax行columnMin列からcolumnMax列までの部分配列を、 rowTocolumnTo列を始点として代入します。
 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を代入します。
 void setSubVector(IntMatrix index, BaseArrayOperator<?> source)
          indexで指定した各成分に配列sourceの成分を代入します。
 
インタフェース org.mklab.nfc.matrix.Array から継承されたメソッド
appendDown, appendRight, compareElementWise, copy, diagonalToVector, flipLeftRight, flipUpDown, getColumnVector, getColumnVectors, getColumnVectors, getRowVector, getRowVectors, getRowVectors, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, getSubVector, getSubVector, reshape, resize, rotateLeft, rotateUp, setColumnVector, setColumnVectors, setColumnVectors, setRowVector, setRowVectors, setRowVectors, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector, setSubVector, 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
 

メソッドの詳細

copy

void copy(BaseArrayOperator<?> source)
各成分に配列source各成分をコピーします。

パラメータ:
source - コピー元の配列

compareElementWise

BooleanMatrix compareElementWise(String operator,
                                 BaseArrayOperator<?> opponent)
配列opponentの各成分と成分毎にoperatorで指定された演算子で比較し, それぞれの結果を成分とするBooleanMatrixを返します。

パラメータ:
operator - 比較演算子(".==", ".!=")
opponent - 比較対象
戻り値:
比較結果を成分とするBooleanMatrix

setSubMatrix

void setSubMatrix(int rowTo,
                  int columnTo,
                  BaseArrayOperator<?> source,
                  int rowMin,
                  int rowMax,
                  int columnMin,
                  int columnMax)
配列sourcerowMin行からrowMax行columnMin列からcolumnMax列までの部分配列を、 rowTocolumnTo列を始点として代入します。

パラメータ:
rowTo - 代入開始行
columnTo - 代入開始列
source - 代入する配列
rowMin - コピー開始行
rowMax - コピー終了行
columnMin - コピー開始列
columnMax - コピー終了列

setSubMatrix

void setSubMatrix(IntMatrix rowIndex,
                  int columnMin,
                  int columnMax,
                  BaseArrayOperator<?> source)
rowIndexで指定した行のcolumnMin列からcolumnMax 列までの 配列sourceを代入します。

パラメータ:
rowIndex - 列指定
columnMin - 行指定
columnMax - 行指定
source - 行列

setSubMatrix

void setSubMatrix(int rowMin,
                  int rowMax,
                  IntMatrix columnIndex,
                  BaseArrayOperator<?> source)
rowMin列からrowMax列目の成分のcolumnIndex で指定された行に、 配列sourceの成分を代入します。

パラメータ:
rowMin - 行指定
rowMax - 行指定
columnIndex - 列指定ベクトル
source - 代入する配列

setSubMatrix

void setSubMatrix(IntMatrix rowIndex,
                  IntMatrix columnIndex,
                  BaseArrayOperator<?> source)
rowIndexで指定した行のcolumnIndexで指定した列に配列sourceを代入します。

パラメータ:
rowIndex - 行指定
columnIndex - 列指定
source - 配列

setSubVector

void setSubVector(IntMatrix index,
                  BaseArrayOperator<?> source)
indexで指定した各成分に配列sourceの成分を代入します。

パラメータ:
index - 成分指定
source - 代入する部分ベクトル

getElement

E getElement(int row,
             int column)
rowcolumn列の成分を返します。

パラメータ:
row - 行番号
column - 列番号
戻り値:
row行column列の成分

getElement

E getElement(int index)
成分を行毎に数えindexで指定した成分を返します。

パラメータ:
index - 成分の番号
戻り値:
指定された成分

setElement

void setElement(int row,
                int column,
                ArrayElement<?> value)
指定した成分にvalueを代入します。

パラメータ:
row - 行番号
column - 列番号
value - 代入する値