|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<A>
org.mklab.nfc.matrix.AbstractArray<BooleanMatrix>
org.mklab.nfc.matrix.BooleanMatrix
public class BooleanMatrix
booleanを成分とする行列を表すクラスです。
主に、行列の成分毎の比較 (". <", ". <=", ".>", ".>=", ".==", ".!=") の結果を保持するために使用されます。
| コンストラクタの概要 | |
|---|---|
BooleanMatrix()
新しく生成された BooleanMatrixオブジェクトを初期化します。 |
|
BooleanMatrix(BaseMatrix<?,?> matrix)
matrixと同サイズのboolean行列を生成します。 |
|
BooleanMatrix(boolean[] elements)
新しく生成された BooleanMatrixオブジェクトを初期化します。 |
|
BooleanMatrix(boolean[][] elements)
elementsで与えられた成分をもつboolean行列を生成します。 |
|
BooleanMatrix(DoubleMatrix matrix)
matrixと同サイズのboolean行列を生成します。 |
|
BooleanMatrix(int rowSize,
int columnSize)
rowSize*columSizeのboolean行列(初期値は<
code>false)を生成します。 |
|
BooleanMatrix(int rowSize,
int columnSize,
boolean[][] elements)
elementsで与えられた成分をもつrowSize*columSize
のboolean行列を生成します。 |
|
BooleanMatrix(IntMatrix matrix)
matrixと同サイズのboolean行列を生成します。 |
|
BooleanMatrix(Matrix matrix)
matrixと同サイズのboolean行列を生成します。 |
|
| メソッドの概要 | |
|---|---|
BooleanMatrix |
add(BooleanMatrix value)
行列 valueとの和(成分毎の論理和)を返します。 |
boolean |
allTrue()
全成分を調べ、全成分が trueならばtrue、そうでなければfalseを返します。 |
BooleanMatrix |
allTrueColumnWise()
成分を列毎に調べ、列の全成分が trueならばtrue、
そうでなければfalseを対応させ、 行毎のboolean値からなる
BooleanMatrixを返します。 |
BooleanMatrix |
allTrueRowWise()
成分を行毎に調べ、行の全成分が trueならばtrue、
そうでなければfalseを対応させ、 行毎のboolean値からなる
BooleanMatrixを返します。 |
BooleanMatrix |
andElementWise(boolean value)
value各成分との論理積を成分にもつBooleanMatrixを返します。 |
BooleanMatrix |
andElementWise(BooleanMatrix value)
valueの各成分との論理積を成分にもつBooleanMatrix返します。 |
boolean |
anyTrue()
全成分を調べ、 trueが1個でもあればtrue、そうでなければfalse
を返します。 |
BooleanMatrix |
anyTrueColumnWise()
列毎の成分を調べ、行に trueが1個でもあればtrue、
そうでなければfalseを対応させ、 boolean値を含む
BooleanMatrixを返します。 |
BooleanMatrix |
anyTrueRowWise()
行毎の成分を調べ、行に trueが1個でもあればtrue、そうでなければfalse
code>を対応させ、 |
BooleanMatrix |
appendDown(Array value)
下側に行列 valueを付けた行列を生成します。 |
BooleanMatrix |
appendDown(BooleanMatrix value)
下側に行列 valueを連結した行列を返します。 |
BooleanMatrix |
appendRight(Array value)
右側に valueを付けた行列を生成します。 |
BooleanMatrix |
appendRight(BooleanMatrix value)
右側に valueを連結した行列を返します。 |
BooleanMatrix |
clone()
Object#clone() |
BooleanMatrix |
compareElementWise(String operator,
Array opponent)
opponentと成分毎にoperatorで指定された演算子で比較した結果を
BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
BooleanMatrix opponent)
opponentの各成分とoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
IntMatrix |
convertIntMatrix()
この行列を IntMatrixに変換します。 |
void |
copy(Array source)
originalの成分をコピーします。 |
void |
copy(BooleanMatrix source)
各成分に行列 sourceの各成分をコピーします。 |
static BooleanMatrix |
diagonal(boolean[] diagonalElements)
対角行列を生成します。 |
BooleanMatrix |
diagonalToVector()
対角成分をからなる縦ベクトルを生成します。 |
boolean |
equals(Object opponent)
|
void |
exchangeColumn(int column1,
int column2)
column1列とcolumn2列を入れ替えます。 |
void |
exchangeRow(int row1,
int row2)
row1行とrow2行を入れ替えます。 |
BooleanMatrix |
exorElementWise(boolean value)
valueの各成分との排他的論理和を成分にもつBooleanMatrixを返します。 |
BooleanMatrix |
exorElementWise(BooleanMatrix value)
valueの各成分との排他的論理和を成分にもつBooleanMatrixを返します。 |
IntMatrix |
find()
trueの位置を順にもつ整数ベクトルを返します。 |
static String |
getDefaultElementFormat()
成分のデフォルト出力フォーマットを返します。 |
boolean |
getElement(int index)
成分を行毎に数え、 index番目の成分を返します。 |
boolean |
getElement(int row,
int column)
row行column列の成分を返します。 |
int |
getNumberOfTrue()
trueである成分の数を返します。 |
BooleanMatrix |
getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
部分行列A(rowMin:rowMax,columnMin:columnMax)を生成します。 |
BooleanMatrix |
getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
rowMin行からrowMax行目で、columnIndexで指定された列を成分とする部分行列を生成します。 |
BooleanMatrix |
getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
columnMin列からcolumnMax列まで、rowIndex
で指定された行を成分とする部分行列を生成します。 |
BooleanMatrix |
getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
rowIndexで指定された行、columnIndex
で指定された列を成分とする部分行列を生成します。 |
BooleanMatrix |
getSubVector(IntMatrix index)
行毎に数え indexで指定した成分を成分とする部分行列を生成します。 |
int |
hashCode()
|
boolean |
isZero()
零行列(全ての成分がデフォルトの初期値)であるか判定します。 |
BooleanMatrix |
multiply(BooleanMatrix value)
行列 valueとの積(成分毎の論理積)を返します。 |
BooleanMatrix |
notElementWise()
各成分の否定( trueならばfalse、falseならば
true) を成分にもつBooleanMatrix行列を返します。 |
static BooleanMatrix |
ones(int size)
size*sizeの全成分がtrueである行列を生成します。 |
static BooleanMatrix |
ones(int rowSize,
int columnSize)
rowSize*columnSizeの全成分がtrue
である行列を生成します。 |
static BooleanMatrix |
ones(Matrix matrix)
行列 matrixと同サイズで全成分trueの行列を生成します。 |
BooleanMatrix |
orElementWise(boolean value)
valueの各成分との論理和を成分にもつBooleanMatrixを返します。 |
BooleanMatrix |
orElementWise(BooleanMatrix value)
valueの各成分との論理和を成分にもつBooleanMatrixを返します。 |
BooleanMatrix |
power(int scalar)
scalar乗(this scalar
)を返します。 |
void |
printElements(Writer output)
ライターに成分を出力します。 |
void |
printElements(Writer output,
int maxColumnSize)
ライターに成分を出力します。 |
void |
removeColumnVectors(int columnMin,
int columnMax)
columnMin列からcolumnMax列までを削除します。 |
void |
removeColumnVectors(IntMatrix columnIndex)
columnIndexで指定された列を削除します。 |
void |
removeRowVectors(int rowMin,
int rowMax)
rowMin行からrowMax行までを削除します。 |
void |
removeRowVectors(IntMatrix rowIndex)
rowIndexで指定された行を削除します。 |
BooleanMatrix |
reshape(int newRowSize,
int newColumnSize)
サイズを newRowSize*newColumnSizeに変更した行列を生成します。 |
BooleanMatrix |
resize(int newRowSize,
int newColSize)
newRowSize*newColumnSizeにサイズ変更します。 |
static void |
setDefaultElementFormat(String format)
成分のデフォルト出力フォーマットを設定します。 |
void |
setElement(int index,
boolean value)
成分を行毎に数え indexで指定した位置にvalueを代入します。 |
void |
setElement(int row,
int column,
boolean value)
row行column列にvalueを代入します。 |
protected void |
setSubMatrix(int rowTo,
int columnTo,
Array source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
rowTo行columnTo列を始点として、行列sourceの
rowMin行からrowMax行かつ
columnMin列からcolumnMax列までの部分行列を代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Array source)
rowMin列目からrowMax列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
BooleanMatrix source)
rowMin列からrowMax列目の成分のcolumnIndex
で指定された行に、 行列sourceの成分を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Array m)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
BooleanMatrix source)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの 行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Array source)
rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
BooleanMatrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。 |
void |
setSubVector(IntMatrix index,
Array source)
indexで指定した各成分に行列sourceの成分に代入します。 |
void |
setSubVector(IntMatrix index,
BooleanMatrix source)
indexで指定した各成分に行列sourceの成分を代入します。 |
String |
toMmString()
MMフォーマットの文字列を生成します。 |
BooleanMatrix |
transpose()
転置行列(this T )を生成します。 |
static BooleanMatrix |
unit(int size)
size*sizeの単位行列(対角成分のみtrue)を生成します。 |
static BooleanMatrix |
unit(int rowSize,
int columnSize)
rowSize*columnSizeの単位行列(対角成分のみtrue)を生成します。 |
static BooleanMatrix |
unit(int rowNumber,
int columnNumber,
Matrix block)
行列 blockのrowNum *
columnNum倍の単位行列を生成します。 |
static BooleanMatrix |
unit(Matrix matrix)
行列 matrixと同サイズの単位行列(対角成分のみtrue)を生成します。 |
BooleanMatrix |
vectorToDiagonal()
縦ベクトルまたは横ベクトルの各成分を対角成分に持つ行列を生成します。 |
| クラス org.mklab.nfc.matrix.AbstractArray から継承されたメソッド |
|---|
flipLeftRight, flipUpDown, getColumnVector, getColumnVectors, getColumnVectors, getRowVector, getRowVectors, getRowVectors, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, getSubVector, rotateLeft, rotateUp, setColumnVector, setColumnVectors, setColumnVectors, setRowVector, setRowVectors, setRowVectors, setSubMatrix, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector, setSubVector |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース org.mklab.nfc.matrix.Grid から継承されたメソッド |
|---|
count, getColumnSize, getElementAlignment, getElementFormat, getPrintingElementsString, getPrintingString, getRowSize, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, length, print, print, print, removeColumnVector, removeRowVector, setElementAlignment, setElementFormat |
| コンストラクタの詳細 |
|---|
public BooleanMatrix()
BooleanMatrixオブジェクトを初期化します。
0*0のBooleanMatrixを生成します。
public BooleanMatrix(boolean[] elements)
BooleanMatrixオブジェクトを初期化します。
elementsで指定した成分をもつBooleanMatrix行列を生成します。
elements - ベクトルの成分をもつ配列
public BooleanMatrix(int rowSize,
int columnSize)
rowSize*columSizeのboolean行列(初期値は<
code>false)を生成します。
rowSize - 行の数columnSize - 列の数
public BooleanMatrix(int rowSize,
int columnSize,
boolean[][] elements)
elementsで与えられた成分をもつrowSize*columSize
のboolean行列を生成します。
rowSize - 行の数columnSize - 列の数elements - 行列の成分をもつ配列public BooleanMatrix(boolean[][] elements)
elementsで与えられた成分をもつboolean行列を生成します。
elements - 行列の成分をもつ配列public BooleanMatrix(Matrix matrix)
matrixと同サイズのboolean行列を生成します。
成分は
matrixの各成分を調べ、零ならばtrue
code>となります。
matrix - 成分をもつ行列
public BooleanMatrix(IntMatrix matrix)
matrixと同サイズのboolean行列を生成します。
成分は
matrixの各成分を調べ、零ならばfalse、零以外ならばtrue
code>となります。
matrix - 成分をもつ行列
public BooleanMatrix(DoubleMatrix matrix)
matrixと同サイズのboolean行列を生成します。
成分は
matrixの各成分を調べ、零ならばfalse、零以外ならばtrue
code>となります。
matrix - 成分をもつ行列
public BooleanMatrix(BaseMatrix<?,?> matrix)
matrixと同サイズのboolean行列を生成します。
成分は
matrixの各成分を調べ、零ならばfalse、零以外ならばtrue
code>となります。
matrix - 成分をもつ行列
| メソッドの詳細 |
|---|
public static void setDefaultElementFormat(String format)
format - 成分のデフォルト出力フォーマットpublic static String getDefaultElementFormat()
public BooleanMatrix clone()
AbstractGrid の記述:
Grid 内の cloneAbstractGrid<BooleanMatrix> 内の cloneAbstractGrid.clone()public boolean equals(Object opponent)
Object 内の equalsObject.equals(java.lang.Object)public int hashCode()
AbstractGrid<BooleanMatrix> 内の hashCodeObject.hashCode()
public final boolean getElement(int row,
int column)
row行column列の成分を返します。
row - 行番号column - 列番号
public final boolean getElement(int index)
index番目の成分を返します。
index - 成分の番号
public final void setElement(int row,
int column,
boolean value)
row行column列にvalueを代入します。
row - 行番号column - 列番号value - 変更値
public final void setElement(int index,
boolean value)
indexで指定した位置にvalueを代入します。
index - 成分の番号value - 設定する値public boolean anyTrue()
trueが1個でもあればtrue、そうでなければfalse
を返します。
trueが1個でもあればtrue、そうでなければfalse
public BooleanMatrix anyTrueRowWise()
trueが1個でもあればtrue、そうでなければfalse
code>を対応させ、 boolean値を含むBooleanMatrixを返します。
- 戻り値:
- 調査の結果を成分とするBooleanMatrix
public BooleanMatrix anyTrueColumnWise()
trueが1個でもあればtrue、
そうでなければfalseを対応させ、 boolean値を含む
BooleanMatrixを返します。
public boolean allTrue()
trueならばtrue、そうでなければfalseを返します。
trueならばtrue、そうでなければfalsepublic BooleanMatrix allTrueRowWise()
trueならばtrue、
そうでなければfalseを対応させ、 行毎のboolean値からなる
BooleanMatrixを返します。
public BooleanMatrix allTrueColumnWise()
trueならばtrue、
そうでなければfalseを対応させ、 行毎のboolean値からなる
BooleanMatrixを返します。
public BooleanMatrix notElementWise()
trueならばfalse、falseならば
true) を成分にもつBooleanMatrix行列を返します。
public BooleanMatrix andElementWise(BooleanMatrix value)
valueの各成分との論理積を成分にもつBooleanMatrix返します。
value - 演算の対象
public BooleanMatrix andElementWise(boolean value)
value各成分との論理積を成分にもつBooleanMatrixを返します。
value - 全ての演算に用いるboolean
public BooleanMatrix orElementWise(BooleanMatrix value)
valueの各成分との論理和を成分にもつBooleanMatrixを返します。
value - 演算の対象
public BooleanMatrix orElementWise(boolean value)
valueの各成分との論理和を成分にもつBooleanMatrixを返します。
value - 全ての演算に用いるboolean
public BooleanMatrix exorElementWise(BooleanMatrix value)
valueの各成分との排他的論理和を成分にもつBooleanMatrixを返します。
value - 演算の対象
public BooleanMatrix exorElementWise(boolean value)
valueの各成分との排他的論理和を成分にもつBooleanMatrixを返します。
value - 全ての演算に用いるboolean
public final void printElements(Writer output)
Grid の記述:
output - ライターGrid.printElements(java.io.Writer)
public final void printElements(Writer output,
int maxColumnSize)
Grid の記述:
output - ライターmaxColumnSize - 1行の出力する列の最大数Grid.printElements(java.io.Writer, int)
public BooleanMatrix reshape(int newRowSize,
int newColumnSize)
Array の記述:newRowSize*newColumnSizeに変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize *
newColumnSize個の成分を持たなければ、エラーとなります。
newRowSize - 行の数newColumnSize - 列の数
Array.reshape(int, int)public int getNumberOfTrue()
trueである成分の数を返します。
public IntMatrix find()
trueの位置を順にもつ整数ベクトルを返します。
public static BooleanMatrix unit(int size)
size*sizeの単位行列(対角成分のみtrue)を生成します。
size - サイズ
public static BooleanMatrix unit(int rowSize,
int columnSize)
rowSize*columnSizeの単位行列(対角成分のみtrue)を生成します。
rowSize - 行の数columnSize - 列の数
public static BooleanMatrix unit(Matrix matrix)
matrixと同サイズの単位行列(対角成分のみtrue)を生成します。
matrix - 行列
public static BooleanMatrix ones(Matrix matrix)
matrixと同サイズで全成分trueの行列を生成します。
matrix - 行列
public static BooleanMatrix ones(int size)
size*sizeの全成分がtrueである行列を生成します。
size - サイズ指定
public static BooleanMatrix ones(int rowSize,
int columnSize)
rowSize*columnSizeの全成分がtrue
である行列を生成します。
rowSize - 行の数columnSize - 列の数
public static BooleanMatrix unit(int rowNumber,
int columnNumber,
Matrix block)
blockのrowNum *
columnNum倍の単位行列を生成します。
block - 行列rowNumber - 行方向の倍数columnNumber - 列方向の倍数
blockのrowNum *
columnNum倍の単位行列public static BooleanMatrix diagonal(boolean[] diagonalElements)
diagonalElements - 対角成分
public String toMmString()
public BooleanMatrix transpose()
Array の記述:
Array.transpose()public BooleanMatrix vectorToDiagonal()
Array の記述:
Array.vectorToDiagonal()public BooleanMatrix diagonalToVector()
Array の記述:
Array.diagonalToVector()
protected void setSubMatrix(int rowTo,
int columnTo,
Array source,
int rowMin,
int rowMax,
int columnMin,
int columnMax)
AbstractArray の記述:rowTo行columnTo列を始点として、行列sourceの
rowMin行からrowMax行かつ
columnMin列からcolumnMax列までの部分行列を代入します。
AbstractArray<BooleanMatrix> 内の setSubMatrixrowTo - 変更開始行columnTo - 変更開始列source - 行列rowMin - コピー開始行rowMax - コピー終了行columnMin - コピー開始列columnMax - コピー終了列AbstractArray.setSubMatrix(int, int, org.mklab.nfc.matrix.Array, int, int, int, int)
public void setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Array m)
Array の記述:rowIndexで指定した行のcolumnMin列からcolumnMax
列までの行列sourceを代入します。
rowIndex - 行番号のリストcolumnMin - 列の始まりcolumnMax - 列の終わりm - 代入する行列Array.setSubMatrix(org.mklab.nfc.matrix.IntMatrix, int,
int, org.mklab.nfc.matrix.Array)
public void setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
BooleanMatrix source)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの 行列sourceを代入します。
rowIndex - 行番号を指定する指数columnMin - 列の始まりcolumnMax - 列の終わりsource - 代入する行列
public void setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Array source)
Array の記述:rowMin列目からrowMax列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。
rowMin - 行の始まりrowMax - 行の終わりcolumnIndex - 列番号のリストsource - 代入する行列Array.setSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Array)
public void setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
BooleanMatrix source)
rowMin列からrowMax列目の成分のcolumnIndex
で指定された行に、 行列sourceの成分を代入します。
rowMin - 行の始まりrowMax - 行の終わりcolumnIndex - 列指定ベクトルsource - 代入する行列
public void setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Array source)
Array の記述:rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。
- パラメータ:
rowIndex - 行番号のリストcolumnIndex - 列番号のリストsource - 代入する行列- 関連項目:
Array.setSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Array)
public void setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
BooleanMatrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。
- パラメータ:
rowIndex - 行番号を指定する指数columnIndex - 列番号を指定する指数source - 代入する行列
public void setSubVector(IntMatrix index,
Array source)
Array の記述:indexで指定した各成分に行列sourceの成分に代入します。
index - 成分の番号のリストsource - 代入する行列Array.setSubVector(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.Array)
public void setSubVector(IntMatrix index,
BooleanMatrix source)
indexで指定した各成分に行列sourceの成分を代入します。
index - 成分の番号を指定する指数source - 代入するベクトルpublic void copy(Array source)
Array の記述:originalの成分をコピーします。
source - コピーする行列Array.copy(org.mklab.nfc.matrix.Array)public void copy(BooleanMatrix source)
sourceの各成分をコピーします。
source - 行列
public BooleanMatrix compareElementWise(String operator,
Array opponent)
Array の記述:opponentと成分毎にoperatorで指定された演算子で比較した結果を
BooleanMatrixで返します。
operator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
BooleanMatrixArray.compareElementWise(java.lang.String,
org.mklab.nfc.matrix.Array)
public BooleanMatrix compareElementWise(String operator,
BooleanMatrix opponent)
opponentの各成分とoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
operator - 比較演算子(".==", ".!=")opponent - 比較対象
public BooleanMatrix appendDown(Array value)
Array の記述:valueを付けた行列を生成します。
value - 付ける行列
valueをつけた行列Array.appendDown(org.mklab.nfc.matrix.Array)public BooleanMatrix appendDown(BooleanMatrix value)
valueを連結した行列を返します。
value - つける行列
public BooleanMatrix appendRight(Array value)
Array の記述:valueを付けた行列を生成します。
value - 付ける複素数
valueを付けた行列Array.appendRight(org.mklab.nfc.matrix.Array)public BooleanMatrix appendRight(BooleanMatrix value)
valueを連結した行列を返します。
value - 連結するBooleanMatrix
valueを連結した行列
public BooleanMatrix getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
Array の記述:
rowMin - 行の始まりrowMax - 行の終わりcolumnMin - 列の始まりcolumnMax - 列の終わり
Array.getSubMatrix(int, int, int, int)
public BooleanMatrix getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
Array の記述:
rowMin - 行の始まりrowMax - 行の終わりcolumnIndex - 列指定ベクトル
Array.getSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix)
public BooleanMatrix getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
Array の記述:rowIndexで指定された行、columnIndex
で指定された列を成分とする部分行列を生成します。
rowIndex - 行指定ベクトルcolumnIndex - 列指定ベクトル
Array.getSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix)
public BooleanMatrix getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
Array の記述:columnMin列からcolumnMax列まで、rowIndex
で指定された行を成分とする部分行列を生成します。
rowIndex - 行指定ベクトルcolumnMin - 列のはじまりcolumnMax - 列の終わり
Array.getSubMatrix(org.mklab.nfc.matrix.IntMatrix, int,
int)public BooleanMatrix getSubVector(IntMatrix index)
Array の記述:indexで指定した成分を成分とする部分行列を生成します。
index - 行番号を含むベクトル
Array.getSubVector(org.mklab.nfc.matrix.IntMatrix)
public void exchangeColumn(int column1,
int column2)
Grid の記述:column1列とcolumn2列を入れ替えます。
column1 - 列番号1column2 - 列番号2Grid.exchangeColumn(int, int)
public void exchangeRow(int row1,
int row2)
Grid の記述:row1行とrow2行を入れ替えます。
row1 - 行番号1row2 - 行番号1Grid.exchangeRow(int, int)
public BooleanMatrix resize(int newRowSize,
int newColSize)
Array の記述:newRowSize*newColumnSizeにサイズ変更します。
Array.reshape(int, int)とは異なり、成分位置の変更はせず, 自身より大きなサイズに変更する時は、
0が埋められ、自身より小さなサイズに変更する時は余分な成分は切り取られます。
newRowSize - 指定行の数newColSize - 指定列の数
Array.resize(int, int)
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)public BooleanMatrix power(int scalar)
scalar乗(this scalar
)を返します。
scalar - 指数
public BooleanMatrix add(BooleanMatrix value)
valueとの和(成分毎の論理和)を返します。
value - 行列
valueとの和(成分毎の論理和)public BooleanMatrix multiply(BooleanMatrix value)
valueとの積(成分毎の論理積)を返します。
value - 行列
valueとの積(成分毎の論理積)public boolean isZero()
Grid の記述:
Grid.isZero()public IntMatrix convertIntMatrix()
IntMatrixに変換します。
IntMatrix
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||