|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<SparceStringMatrix>
org.mklab.tool.control.system.graph.SparceStringMatrix
public class SparceStringMatrix
文字列を成分とする疎な行列を表現するクラスです。
コンストラクタの概要 | |
---|---|
SparceStringMatrix()
0x0の文字列行列を生成します。 |
|
SparceStringMatrix(int rowSize,
int columnSize)
コンストラクター |
|
SparceStringMatrix(String[] elements)
elements で与えられた成分をもつ行ベクトルを生成します。 |
|
SparceStringMatrix(String[][] elements)
elements で与えられた成分をもつ文字列行列を生成します。 |
メソッドの概要 | |
---|---|
SparceStringMatrix |
clone()
Object#clone() |
boolean |
equals(Object opponent)
|
void |
exchangeColumn(int column1,
int column2)
column1 列とcolumn2 列を入れ替えます。 |
void |
exchangeRow(int row1,
int row2)
row1 行とrow2 行を入れ替えます。 |
SparceStringMatrix |
exchangeRowAndColumn(int n1,
int n2)
行n1と行n2、列n1と列n2を同時に入れ替えた行列を返します。 |
int |
getColumnElementCount(int column)
指定した列に存在する空文字列でない成分の数を返します。 |
String |
getElement(int row,
int column)
row 行column 列の成分を返します。 |
int |
getRowElementCount(int row)
指定した行に存在する空文字列でない成分の数を返します。 |
boolean |
hasElement(int row,
int column)
指定した位置に値が入っているか判定します。 |
int |
hashCode()
|
boolean |
isZero()
零行列(全ての成分がデフォルトの初期値)であるか判定します。 |
void |
printElements(Writer output)
ライターに成分を出力します。 |
void |
printElements(Writer output,
int maxColumnSize)
ライターに成分を出力します。 |
void |
removeColumnVectors(int columnMin,
int columnMax)
columnMin 列からcolumnMax 列までを削除します。 |
void |
removeColumnVectors(IntMatrix columnIndex)
columnIndex で指定された列を削除します。 |
SparceStringMatrix |
removeNode(int node)
指定されたノードを削除した文字列行列を返します。 |
SparceStringMatrix |
removeRowAndColumn(int n)
指定された行と列を削除した文字列行列を返します。 |
void |
removeRowVectors(int rowMin,
int rowMax)
rowMin 行からrowMax 行までを削除します。 |
void |
removeRowVectors(IntMatrix rowIndex)
rowIndex で指定された行を削除します。 |
void |
setElement(int row,
int column,
String value)
指定した位置に値を設定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public SparceStringMatrix()
public SparceStringMatrix(String[] elements)
elements
で与えられた成分をもつ行ベクトルを生成します。
elements
- String
の配列public SparceStringMatrix(int rowSize, int columnSize)
rowSize
- 行の数columnSize
- 列の数public SparceStringMatrix(String[][] elements)
elements
で与えられた成分をもつ文字列行列を生成します。
elements
- String
の2次元配列メソッドの詳細 |
---|
public String getElement(int row, int column)
row
行column
列の成分を返します。
row
- 行番号column
- 列番号
public boolean hasElement(int row, int column)
row
- 行番号column
- 列番号
public void setElement(int row, int column, String value)
row
- 行番号column
- 列番号value
- (row,column)に設定する String
public void printElements(Writer output)
Grid
の記述:
output
- ライターGrid.printElements(java.io.Writer)
public void printElements(Writer output, int maxColumnSize)
Grid
の記述:
output
- ライターmaxColumnSize
- 1行の出力する列の最大数Grid.printElements(java.io.Writer, int)
public SparceStringMatrix removeNode(int node)
node
- 削除対象のノード
public SparceStringMatrix removeRowAndColumn(int n)
n
- 削除対象の行番号、列番号
public void exchangeRow(int row1, int row2)
Grid
の記述:row1
行とrow2
行を入れ替えます。
row1
- 行番号1row2
- 行番号1Grid.exchangeRow(int, int)
public void exchangeColumn(int column1, int column2)
Grid
の記述:column1
列とcolumn2
列を入れ替えます。
column1
- 列番号1column2
- 列番号2Grid.exchangeColumn(int, int)
public SparceStringMatrix exchangeRowAndColumn(int n1, int n2)
n1
- 行番号1、列番号1n2
- 行番号2、列番号2
public int getRowElementCount(int row)
row
- 行番号
public int getColumnElementCount(int column)
column
- 列番号
public boolean equals(Object opponent)
Object
内の equals
Object.equals(java.lang.Object)
public int hashCode()
AbstractGrid<SparceStringMatrix>
内の hashCode
Object.hashCode()
public SparceStringMatrix clone()
AbstractGrid
の記述:
Grid
内の clone
AbstractGrid<SparceStringMatrix>
内の clone
AbstractGrid.clone()
public boolean isZero()
Grid
の記述:
Grid.isZero()
public void removeColumnVectors(int columnMin, int columnMax)
Grid
の記述:columnMin
列からcolumnMax
列までを削除します。
columnMin
- 列の始まりcolumnMax
- 列の終わりGrid.removeColumnVectors(int, int)
public void removeColumnVectors(IntMatrix columnIndex)
Grid
の記述:columnIndex
で指定された列を削除します。
columnIndex
- 列指定ベクトルGrid.removeColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public void removeRowVectors(int rowMin, int rowMax)
Grid
の記述:rowMin
行からrowMax
行までを削除します。
rowMin
- 行の始まりrowMax
- 行の終わりGrid.removeRowVectors(int, int)
public void removeRowVectors(IntMatrix rowIndex)
Grid
の記述:rowIndex
で指定された行を削除します。
rowIndex
- 行指定ベクトルGrid.removeRowVectors(org.mklab.nfc.matrix.IntMatrix)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |