|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の clone
AbstractGrid<BooleanMatrix>
内の clone
AbstractGrid.clone()
public boolean equals(Object opponent)
Object
内の equals
Object.equals(java.lang.Object)
public int hashCode()
AbstractGrid<BooleanMatrix>
内の hashCode
Object.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、そうでなければfalse
public 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>
内の setSubMatrix
rowTo
- 変更開始行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
- 比較対象
BooleanMatrix
Array.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
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |