org.mklab.nfc.matrix
インタフェース Grid

既知のサブインタフェースの一覧:
Array, BaseArrayOperator<E>, FundamentalMatrix, Matrix, MatxArray, NumericalMatrixOperator<E>, SymbolicMatrixOperator<E>, TransformableMatrix<M>
既知の実装クラスの一覧:
AbstractArray, AbstractFundamentalMatrix, AbstractGrid, AbstractMatrix, AdjacencyConstantMatrix, AdjacencyMatrix, BaseArray, BaseMatrix, BooleanMatrix, DoubleComplexMatrix, DoubleMatrix, IntMatrix, MatxComplexArray, MatxIntegerArray, MatxPolynomialArray, MatxRationalPolynomialArray, MatxRealArray, NumericalComplexMatrix, NumericalMatrix, PolynomialMatrix, RationalPolynomialMatrix, SparceStringMatrix, SymbolicMatrix

public interface Grid

グリッド(格子状)データを表わすインターフェースです。

バージョン:
$Revision: 1.47 $
作成者:
koga

メソッドの概要
 Grid clone()
          複製(クローン)を返します。
 int count()
          成分の個数を返します。
 void exchangeColumn(int column1, int column2)
          column1列とcolumn2列を入れ替えます。
 void exchangeRow(int row1, int row2)
          row1行とrow2行を入れ替えます。
 int getColumnSize()
          列の数を返します。
 GridElementAlignment getElementAlignment()
          成分の出力配置を返します。
 String getElementFormat()
          成分の出力フォーマットを返します。
 String getPrintingElementsString(int maxColumnSize)
          成分の表示文字列を返します。
 String getPrintingString(String name)
          表示文字列を返します。
 int getRowSize()
          行の数を返します。
 boolean hasSameColumnSize(Grid opponent)
          列の数が等しいか判定します。
 boolean hasSameRowSize(Grid opponent)
          行の数が等しいか判定します。
 boolean isEmpty()
          0*0の行列(空行列)であるか判定します。
 boolean isSameSize(Grid opponent)
          同一サイズであるか判定します。
 boolean isSquare()
          正方(行の数と列の数が等しい)か判定します。
 boolean isZero()
          零行列(全ての成分がデフォルトの初期値)であるか判定します。
 int length()
          行と列の長い方の数を返します。
 void print()
          標準出力に"ans"という名前で出力します。
 void print(String name)
          名前を付けて標準出力に出力します。
 void print(String name, Writer output)
          ライターに出力します。
 void printElements(Writer output)
          ライターに成分を出力します。
 void printElements(Writer output, int maxColumnSize)
          ライターに成分を出力します。
 void removeColumnVector(int index)
          指定された列を削除します。
 void removeColumnVectors(int columnMinimum, int columnMaximum)
          columnMin列からcolumnMax列までを削除します。
 void removeColumnVectors(IntMatrix columnIndex)
          columnIndexで指定された列を削除します。
 void removeRowVector(int index)
          指定された行を削除します。
 void removeRowVectors(int rowMinimum, int rowMaximum)
          rowMin行からrowMax行までを削除します。
 void removeRowVectors(IntMatrix rowIndex)
          rowIndexで指定された行を削除します。
 void setElementAlignment(GridElementAlignment alignment)
          成分の出力配置を設定します。
 void setElementFormat(String format)
          成分の出力フォーマットを設定します。
 

メソッドの詳細

clone

Grid clone()
複製(クローン)を返します。

戻り値:
複製(クローン)

isZero

boolean isZero()
零行列(全ての成分がデフォルトの初期値)であるか判定します。

戻り値:
零行列(全ての成分がデフォルトの初期値)ならばtrue、そうでなければfalse

getRowSize

int getRowSize()
行の数を返します。

戻り値:
行の数

getColumnSize

int getColumnSize()
列の数を返します。

戻り値:
列の数

length

int length()
行と列の長い方の数を返します。

戻り値:
行と列の長い方の数

count

int count()
成分の個数を返します。

戻り値:
成分の個数

isEmpty

boolean isEmpty()
0*0の行列(空行列)であるか判定します。

戻り値:
空行列ならばtrue、そうでなければfalse

isSquare

boolean isSquare()
正方(行の数と列の数が等しい)か判定します。

戻り値:
正方(行の数と列の数が等しい)ならばtrue、そうでなければfalse

isSameSize

boolean isSameSize(Grid opponent)
同一サイズであるか判定します。

パラメータ:
opponent - 比較対象
戻り値:
同一サイズならばtrue、そうでなければfalse

hasSameRowSize

boolean hasSameRowSize(Grid opponent)
行の数が等しいか判定します。

パラメータ:
opponent - 比較対象
戻り値:
行の数が等しければtrue、そうでなければfalse

hasSameColumnSize

boolean hasSameColumnSize(Grid opponent)
列の数が等しいか判定します。

パラメータ:
opponent - 比較対象
戻り値:
列の数が等しければtrue、そうでなければfalse

exchangeRow

void exchangeRow(int row1,
                 int row2)
row1行とrow2行を入れ替えます。

パラメータ:
row1 - 行番号1
row2 - 行番号1

exchangeColumn

void exchangeColumn(int column1,
                    int column2)
column1列とcolumn2列を入れ替えます。

パラメータ:
column1 - 列番号1
column2 - 列番号2

removeRowVectors

void removeRowVectors(int rowMinimum,
                      int rowMaximum)
rowMin行からrowMax行までを削除します。

パラメータ:
rowMinimum - 行の始まり
rowMaximum - 行の終わり

removeRowVectors

void removeRowVectors(IntMatrix rowIndex)
rowIndexで指定された行を削除します。

パラメータ:
rowIndex - 行指定ベクトル

removeColumnVectors

void removeColumnVectors(int columnMinimum,
                         int columnMaximum)
columnMin列からcolumnMax列までを削除します。

パラメータ:
columnMinimum - 列の始まり
columnMaximum - 列の終わり

removeColumnVectors

void removeColumnVectors(IntMatrix columnIndex)
columnIndexで指定された列を削除します。

パラメータ:
columnIndex - 列指定ベクトル

removeRowVector

void removeRowVector(int index)
指定された行を削除します。

パラメータ:
index - 指定行

removeColumnVector

void removeColumnVector(int index)
指定された列を削除します。

パラメータ:
index - 指定列

print

void print()
標準出力に"ans"という名前で出力します。


print

void print(String name)
名前を付けて標準出力に出力します。

パラメータ:
name - 名前

print

void print(String name,
           Writer output)
ライターに出力します。

パラメータ:
name - 行列の名前
output - ライター

printElements

void printElements(Writer output)
ライターに成分を出力します。

パラメータ:
output - ライター

printElements

void printElements(Writer output,
                   int maxColumnSize)
ライターに成分を出力します。

パラメータ:
output - ライター
maxColumnSize - 1行の出力する列の最大数

getPrintingString

String getPrintingString(String name)
表示文字列を返します。

パラメータ:
name - 名前
戻り値:
表示文字列

getPrintingElementsString

String getPrintingElementsString(int maxColumnSize)
成分の表示文字列を返します。

パラメータ:
maxColumnSize - 列の数の最大値
戻り値:
成分の表示文字列

setElementFormat

void setElementFormat(String format)
成分の出力フォーマットを設定します。

パラメータ:
format - 成分の出力フォーマット

getElementFormat

String getElementFormat()
成分の出力フォーマットを返します。

戻り値:
成分の出力フォーマット

setElementAlignment

void setElementAlignment(GridElementAlignment alignment)
成分の出力配置を設定します。

パラメータ:
alignment - 成分の出力配置

getElementAlignment

GridElementAlignment getElementAlignment()
成分の出力配置を返します。

戻り値:
成分の出力配置