|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<M>
org.mklab.nfc.matrix.AbstractFundamentalMatrix<M>
org.mklab.nfc.matrix.AbstractMatrix<IntMatrix>
org.mklab.nfc.matrix.IntMatrix
public class IntMatrix
int型の値を成分とする行列を表すクラスです。
| コンストラクタの概要 | |
|---|---|
IntMatrix()
新しく生成された IntMatrixオブジェクトを初期化します。 |
|
IntMatrix(byte[] elements)
elementsで与えられた成分をもつ行ベクトルを生成します。 |
|
IntMatrix(byte[][] elements)
elementsで与えられた成分をもつ整数行列を生成します。 |
|
IntMatrix(DoubleMatrix matrix)
新しく生成された IntMatrixオブジェクトを初期化します。 |
|
IntMatrix(int[] elements)
elementsで与えられた成分をもつ行ベクトルを生成します。 |
|
IntMatrix(int[][] elements)
elementsで与えられた成分をもつ整数行列を生成します。 |
|
IntMatrix(int rowSize,
int columnSize)
rowSize*columnSizeの成分0の整数行列を生成します。 |
|
IntMatrix(int rowSize,
int columnSize,
byte[][] elements)
elementsで与えられた成分をもつrowSize*columnSizeの整数行列を生成します。 |
|
IntMatrix(int rowSize,
int columnSize,
int[][] elements)
elementsで与えられた成分をもつrowSize*columnSizeの整数行列を生成します。 |
|
| メソッドの概要 | |
|---|---|
BaseMatrix<?,?> |
add(BaseMatrix<?,?> value)
行列 valueとの和(this+value)を返します。 |
DoubleMatrix |
add(DoubleMatrix value)
行列 valueとの和(this+value)を返します。 |
IntMatrix |
add(IntMatrix value)
行列 valueとの和(this+value)を返します。 |
Matrix |
addElementWise(double scalar)
成分毎に実数を加えます。 |
IntMatrix |
addElementWise(int value)
成分毎に整数を加えます。 |
Matrix |
addElementWise(Scalar<?> value)
成分毎にスカラーを加えます。 |
IntMatrix |
appendDown(IntMatrix value)
下側に行列 valueを連結した行列を返します。 |
IntMatrix |
appendRight(IntMatrix value)
右側に valueを連結した行列を返します。 |
IntMatrix |
ceilElementWise()
大きい整数に丸めます。 |
IntMatrix |
clone()
Object#clone() |
BooleanMatrix |
compareElementWise(String operator,
double opponent)
各成分と valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
int opponent)
各成分と valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
IntMatrix opponent)
opponentと成分毎にoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
Matrix opponent)
opponentと成分毎にoperatorで指定された演算子で比較した結果を
BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
Scalar<?> opponent)
各成分と valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
IntMatrix |
conjugate()
複素共役を返します。 |
IntMatrix |
conjugateTranspose()
各成分の共役複素数の転置行列を返します。 |
void |
copy(IntMatrix source)
各成分に実数行列 sourceの各成分をコピーします。 |
void |
copy(Matrix source)
sourceの成分をコピーします。 |
IntMatrix |
covariance(IntMatrix opponent)
opponentとの共分散行列を返します。 |
IntMatrix |
createOnes(int rowSize,
int columnSize)
rowSize*columnSizeの全成分が1である行列を生成します。 |
IntMatrix |
createUnit(int rowSize,
int columnSize)
rowSize*columnSizeの単位行列を生成します。 |
IntMatrix |
createZero(int rowSize,
int columnSize)
rowSize*columnSizeの零行列を生成します。 |
IntMatrix |
cumulativeProduct()
各要の累積積からなる行列を返します。 |
IntMatrix |
cumulativeProductColumnWise()
列毎の累積積行列を返します。 |
IntMatrix |
cumulativeProductRowWise()
行毎の累積積行列を返します。 |
IntMatrix |
cumulativeSum()
各要の累積和からなる行列を返します。 |
IntMatrix |
cumulativeSumColumnWise()
列毎の累積和行列を返します。 |
IntMatrix |
cumulativeSumRowWise()
行毎の累積和行列を返します。 |
static IntMatrix |
diagonal(int[] diagonalElements)
対角行列を生成します。 |
IntMatrix |
diagonalToVector()
対角成分をからなる列ベクトルを生成します。 |
BaseMatrix<?,?> |
divide(BaseMatrix<?,?> value)
行列 valueとの逆行列の積(this*m -1 )を返します。 |
DoubleMatrix |
divide(double value)
各成分と実数valueの商( this/value)を返します。 |
DoubleMatrix |
divide(DoubleMatrix value)
行列 valueの逆行列との積(this*value -1
)を返します。 |
IntMatrix |
divide(int value)
各成分と整数valueの商( this/value)を返します。 |
DoubleMatrix |
divide(IntMatrix value)
行列 valueの逆行列との積(this*value -1
)を返します。 |
Matrix |
divide(Scalar<?> value)
各成分とスカラーの商からなる行列を返します。 |
DoubleMatrix |
divideElementWise(IntMatrix value)
valueとの成分毎の商を成分にもつ行列を返します。 |
boolean |
equals(IntMatrix opponent)
行列 opponentと等しか判定します。 |
boolean |
equals(IntMatrix opponent,
double tolerance)
許容誤差範囲内で全ての成分が等しか判定します。 |
boolean |
equals(Matrix opponent,
double tolerance)
行列 opponentと値が許容誤差以内で等しいか判定します。 |
boolean |
equals(Object opponent)
|
void |
exchangeColumn(int column1,
int column2)
column1列とcolumn2列を入れ替えます。 |
void |
exchangeRow(int row1,
int row2)
row1行とrow2行を入れ替えます。 |
IntMatrix |
fixElementWise()
ゼロ方向の整数に丸めます。 |
IntMatrix |
floorElementWise()
小さい整数に丸めます。 |
static String |
getDefaultElementFormat()
成分のデフォルト出力フォーマットを返します。 |
int |
getElement(int index)
ベクトルの成分を返します。 |
int |
getElement(int row,
int column)
行列の成分を返します。 |
IntMatrix |
getImaginaryPart()
虚部行列を返します。 |
IntMatrix |
getRealPart()
実部行列を返します。 |
IntMatrix |
getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
部分行列 this(rowMinimum:rowMaximum,columnMinimum:columnMaximum)を生成します。 |
IntMatrix |
getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
rowMinimum行からrowMaximum行目で、columnIndex
で指定された列を成分とする部分行列を生成します。 |
IntMatrix |
getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
columnMinimum列からcolumnMaximum列まで、
rowIndexで指定された行を成分とする部分行列を生成します。 |
IntMatrix |
getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
rowIndexで指定された行で、columnIndex
で指定された列を成分とする部分行列を生成します。 |
IntMatrix |
getSubVector(IntMatrix index)
行毎に数え indexで指定した成分を成分とする部分行列を生成します。 |
int |
hashCode()
|
DoubleMatrix |
inverse()
逆行列( this -1 )を返します。 |
Matrix |
inverse(double tolerance,
boolean stopIfSingular)
逆行列( this -1 )を返します。 |
Matrix |
inverseElementWise()
成分毎の逆数からなる行列を返します。 |
boolean |
isComplex()
複素成分をもつか判定します。 |
BooleanMatrix |
isFiniteElementWise()
各成分の有限性の真偽を成分にもつ行列を返します。 |
BooleanMatrix |
isInfiniteElementWise()
各成分の無限性の真偽を成分にもつ行列を返します。 |
BooleanMatrix |
isNanElementWise()
各成分の非数性の真偽を成分にもつ行列を返します。 |
boolean |
isReal()
実成分のみをもつか(複素成分をもたないか)判定します。 |
boolean |
isTransformableFrom(Matrix value)
引数で与えられた型から、この型へ変換可能か判定します。 |
boolean |
isUnit(double tolerance)
単位行列であるか判定します。 |
boolean |
isZero(double tolerance)
零行列であるか判定します。 |
DoubleMatrix |
leftDivide(IntMatrix value)
逆行列と行列 valueとの積(this*value -1
)を返します。 |
DoubleMatrix |
leftDivideElementWise(IntMatrix value)
自身と valueの成分毎の左からの商を成分にもつ行列を返します。 |
IntMatrix |
maxElementWise(IntMatrix opponent)
各成分の最大値をもつ行列を生成して返します。 |
IntMatrix |
meanColumnWise()
各成分列毎の平均値行ベクトルを返します。 |
IntMatrix |
meanRowWise()
各成分行毎の平均値列ベクトルを返します。 |
IntMatrix |
minElementWise(IntMatrix opponent)
各成分の最小値をもつ行列を生成して返します。 |
BaseMatrix<?,?> |
multiply(BaseMatrix<?,?> value)
行列 valueとの積(this*value)を返します。 |
DoubleMatrix |
multiply(double value)
各成分と実数 valueの積を(this*value)を返します。 |
DoubleMatrix |
multiply(DoubleMatrix value)
行列 valueとの積(this*value)を返します。 |
IntMatrix |
multiply(int value)
各成分と整数 valueの積を(this*value)を返します。 |
IntMatrix |
multiply(IntMatrix value)
行列 valueとの積(this*value)を返します。 |
Matrix |
multiply(Scalar<?> value)
各成分とスカラー valueの積を返します。 |
IntMatrix |
multiplyElementWise(IntMatrix value)
valueとの成分毎の積を成分にもつ行列を返します。 |
static IntMatrix |
ones(int size)
size*sizeの全成分1の行列を生成します。 |
static IntMatrix |
ones(int rowSize,
int columnSize)
rowSize*columnSizeの全成分1の行列を生成します。 |
static IntMatrix |
ones(int rowNumber,
int columNumber,
Matrix block)
行列 blockのrowNumber*colNumber
倍の全成分1の行列を生成します。 |
static IntMatrix |
ones(Matrix matrix)
行列 matrixと同サイズの全成分1の行列を生成します。 |
DoubleMatrix |
powerElementWise(double scalar)
成分毎に累乗します。 |
DoubleMatrix |
powerElementWise(DoubleMatrix matrix)
成分毎に累乗します。 |
IntMatrix |
powerElementWise(int scalar)
成分毎に累乗します。 |
static IntMatrix |
powerElementWise(int scalar,
IntMatrix matrix)
1個の整数について、行列の各成分の累乗を求めます。 |
IntMatrix |
powerElementWise(IntMatrix matrix)
成分毎に累乗します。 |
static Matrix |
powerElementWise(int scalar,
Matrix matrix)
1個の整数について、行列の各成分の累乗を求めます。 |
NumericalMatrix<?> |
powerElementWise(NumericalMatrix<?> matrix)
成分毎に累乗します。 |
NumericalMatrix<?> |
powerElementWise(NumericalScalar<?> scalar)
成分毎に累乗します。 |
void |
printElements(Writer output)
ライターに成分を出力します。 |
void |
printElements(Writer output,
int maxColumnSize)
ライターに成分を出力します。 |
int |
product()
全ての成分の積を求めます。 |
IntMatrix |
productColumnWise()
列毎に掛けた行ベクトルを返します。 |
IntMatrix |
productRowWise()
行毎に掛けた列ベクトルを返します。 |
static IntMatrix |
readMxFormat(InputStream input,
MxDataHead head)
MatxMatrix.readMxFormat(InputStream)
から呼ばれる中間メソッドです。 |
IntMatrix |
remElementWise(double scalar)
成分毎の剰余の結果からなる行列を返します。 |
void |
removeColumnVectors(int min,
int max)
columnMin列からcolumnMax列までを削除します。 |
void |
removeColumnVectors(IntMatrix index)
columnIndexで指定された列を削除します。 |
void |
removeRowVectors(int min,
int max)
rowMin行からrowMax行までを削除します。 |
void |
removeRowVectors(IntMatrix index)
rowIndexで指定された行を削除します。 |
IntMatrix |
reshape(int newRowSize,
int newColumnSize)
サイズを newRowSize*newColumnSizeに変更した行列を生成します。 |
IntMatrix |
resize(int newRowSize,
int newColumnSize)
newRowSize*newColumnSizeにサイズ変更します。 |
IntMatrix |
roundElementWise()
最も近い整数に丸めます。 |
IntMatrix |
roundToZeroElementWise(double tolerance)
絶対値が小さい成分を0に丸めます。 |
static IntMatrix |
series(int from,
int to)
sourceからtoまでの連続する整数を成分にもつ行ベクトルを返します。 |
static IntMatrix |
series(int from,
int to,
int by)
sourceからtoまでのby飛びの整数を成分にもつ行ベクトルを返します
。 |
static void |
setDefaultElementFormat(String format)
成分のデフォルト出力フォーマットを設定します。 |
void |
setElement(int index,
int value)
成分を行毎に数え indexで指定した位置に整数valueを代入します。 |
void |
setElement(int row,
int column,
int value)
指定した位置に整数 valueを代入します。 |
void |
setImaginaryPart(BaseMatrix<?,?> imaginaryPart)
虚部行列を設定します。 |
void |
setImaginaryPart(DoubleMatrix imaginaryPart)
虚部行列を設定します。 |
void |
setImaginaryPart(IntMatrix imaginaryPart)
虚部行列を設定します。 |
void |
setImaginaryPart(Matrix imaginaryPart)
虚部行列を設定します。 |
void |
setRealPart(BaseMatrix<?,?> realPart)
実部行列を設定します。 |
void |
setRealPart(DoubleMatrix realPart)
実部行列を設定します。 |
void |
setRealPart(IntMatrix realPart)
実部行列を設定します。 |
void |
setRealPart(Matrix realPart)
実部行列を設定します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax,
IntMatrix source)
指定した成分に行列 sourceを代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax,
Matrix source)
指定した成分に行列 sourceを代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
IntMatrix source)
rowMin列からrowMax列目の成分のcolumnIndex
で指定された行に、 行列sourceの成分を代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Matrix source)
rowMinimum列目からrowMaximum列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
IntMatrix source)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの 行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Matrix source)
rowIndexで指定した行のcolumnMinimum列からcolumnMaximum
列までの行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
IntMatrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Matrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列sourceを代入します。 |
void |
setSubVector(int min,
int max,
IntMatrix source)
成分を行毎に数え、 minからmaxまでにsourceの成分を代入します。 |
void |
setSubVector(int min,
int max,
Matrix source)
成分を行毎に数え、 minimumからmaximumまでにsourceの成分を代入します。 |
void |
setSubVector(IntMatrix index,
IntMatrix source)
indexで指定した各成分に行列sourceの成分を代入します。 |
void |
setSubVector(IntMatrix index,
Matrix source)
indexで指定した各成分に行列sourceの成分を代入します。 |
IndexedMatrix<IntMatrix> |
sort()
全ての成分を昇順に並び替えた行列 と、 元の位置を示す指数( IntMatrix)を返します。 |
IndexedMatrix<IntMatrix> |
sortColumnWise()
列毎に昇順に並び替えた行列 と、 元の位置を示す指数( IntMatrix)を返します。 |
IndexedMatrix<IntMatrix> |
sortRowWise()
行毎に昇順に並び替えた行列 と、 元の位置を示す指数( IntMatrix)を返します。 |
BaseMatrix<?,?> |
subtract(BaseMatrix<?,?> value)
行列 valueとの差(this-value)を返します。 |
DoubleMatrix |
subtract(DoubleMatrix value)
行列 valueとの差(this-value)を返します。 |
IntMatrix |
subtract(IntMatrix value)
行列 valueとの差(this-value)を返します。 |
Matrix |
subtractElementWise(double scalar)
成分毎に実数を引きます。 |
IntMatrix |
subtractElementWise(int value)
成分毎に実数を引きます。 |
Matrix |
subtractElementWise(Scalar<?> value)
成分毎にスカラーを引きます。 |
int |
sum()
全ての成分の和を求めます。 |
IntMatrix |
sumColumnWise()
列毎に加えた行ベクトルを返します。 |
IntMatrix |
sumRowWise()
行毎に加えた列ベクトルを返します。 |
DoubleComplexMatrix |
toComplex()
複素成分行列へ変換します。 |
String |
toMmString()
MM形式の文字列を生成します。 |
String |
toMmString(String format)
MM形式の文字列を生成します。 |
IntMatrix |
transformFrom(Matrix value)
引数で与えられた型からこの型へ変換します。 |
IntMatrix |
transpose()
転置行列( this T )を生成します。 |
IntMatrix |
unaryMinus()
符号を反転した値(-this)を返します。 |
static IntMatrix |
unit(int size)
size*sizeの単位行列を生成します。 |
static IntMatrix |
unit(int rowSize,
int columnSize)
rowSize*columnSizeの単位行列を生成します。 |
static IntMatrix |
unit(int rowNumber,
int columnNumber,
Matrix block)
行列 matrixのrowNumber*colNumber
倍の実単位行列を返します。 |
static IntMatrix |
unit(Matrix matrix)
行列 matrixと同サイズの実単位行列を返します。 |
int |
variance()
ベクトルの成分の分散を返します。 |
IntMatrix |
vectorToDiagonal()
列ベクトルまたは行ベクトルの各成分を対角成分に持つ行列を生成します。 |
void |
writeMatFormat(OutputStream output)
データを出力ストリームにMATフォーマットで出力します。 |
void |
writeMatFormat(String fileName)
指定したファイルにMATフォーマットで保存します。 |
void |
writeMmFormat(String fileName,
String name)
MMファイル形式で行列データをファイルに出力します。 |
void |
writeMmFormat(Writer output,
String name,
boolean withNewLine)
MMフォーマット行列データをライターに出力します。 |
void |
writeMxFormat(OutputStream output,
String name)
データをMX形式で出力ストリームへ出力します。 |
void |
writeMxFormat(String fileName,
String name)
データをMX形式でファイルへ出力します。 |
static IntMatrix |
zero(int rowNumber,
int columnNumber,
Matrix block)
行列 blockのrowNumber*colNumber
倍の零行列を生成します。 |
static IntMatrix |
zero(Matrix matrix)
行列 matrixと同サイズの零行列を生成します。 |
| クラス org.mklab.nfc.matrix.AbstractMatrix から継承されたメソッド |
|---|
add, covariance, createOnes, createOnes, createOnes, createUnit, createUnit, createUnit, createZero, createZero, createZero, divide, divideElementWise, isTransformableTo, isUnit, isZero, leftDivide, leftDivide, leftDivide, leftDivide, leftDivideElementWise, multiply, multiplyElementWise, power, powerElementWise, roundToZeroElementWise, shiftLeft, shiftUp, subtract, transformTo, transformToSameClass |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース org.mklab.nfc.matrix.FundamentalMatrix から継承されたメソッド |
|---|
appendDown, appendRight, flipLeftRight, flipUpDown, getColumnVector, getColumnVectors, getColumnVectors, getRowVector, getRowVectors, getRowVectors, getSubMatrix, getSubMatrix, getSubMatrix, getSubVector, getSubVector, rotateLeft, rotateUp, setColumnVector, setColumnVectors, setColumnVectors, setRowVector, setRowVectors, setRowVectors, setSubMatrix, setSubMatrix, setSubMatrix, setSubVector |
| インタフェース 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 IntMatrix()
IntMatrixオブジェクトを初期化します。
0*0の整数行列を生成します。
public IntMatrix(int[] elements)
elementsで与えられた成分をもつ行ベクトルを生成します。
elements - ベクトルの成分をもつ配列public IntMatrix(byte[] elements)
elementsで与えられた成分をもつ行ベクトルを生成します。
elements - ベクトルの成分をもつ配列
public IntMatrix(int rowSize,
int columnSize)
rowSize*columnSizeの成分0の整数行列を生成します。
rowSize - 行の数columnSize - 列の数
public IntMatrix(int rowSize,
int columnSize,
int[][] elements)
elementsで与えられた成分をもつrowSize*columnSizeの整数行列を生成します。
rowSize - 行の数columnSize - 列の数elements - 行列の成分をもつ配列
public IntMatrix(int rowSize,
int columnSize,
byte[][] elements)
elementsで与えられた成分をもつrowSize*columnSizeの整数行列を生成します。
rowSize - 行の数columnSize - 列の数elements - 行列の成分をもつ配列public IntMatrix(int[][] elements)
elementsで与えられた成分をもつ整数行列を生成します。
elements - 行列の成分をもつ配列public IntMatrix(byte[][] elements)
elementsで与えられた成分をもつ整数行列を生成します。
elements - 行列の成分をもつ配列public IntMatrix(DoubleMatrix matrix)
IntMatrixオブジェクトを初期化します。
matrix - 実数行列| メソッドの詳細 |
|---|
public static void setDefaultElementFormat(String format)
format - 成分のデフォルト出力フォーマットpublic static String getDefaultElementFormat()
public boolean equals(Object opponent)
Object 内の equalsObject.equals(java.lang.Object)
public boolean equals(Matrix opponent,
double tolerance)
FundamentalMatrix の記述:opponentと値が許容誤差以内で等しいか判定します。
FundamentalMatrix 内の equalsopponent - 比較する行列tolerance - 許容誤差
FundamentalMatrix.equals(org.mklab.nfc.matrix.Matrix, double)public boolean equals(IntMatrix opponent)
opponentと等しか判定します。
opponent - 整数行列
opponentと等しければtrue,そうでなければfalse
public boolean equals(IntMatrix opponent,
double tolerance)
opponent - 整数行列tolerance - 許容誤差
public int hashCode()
AbstractGrid<IntMatrix> 内の hashCodeAbstractGrid.hashCode()public boolean isTransformableFrom(Matrix value)
Matrix の記述:
Matrix 内の isTransformableFromAbstractMatrix<IntMatrix> 内の isTransformableFromvalue - 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)public IntMatrix transformFrom(Matrix value)
Matrix の記述:
Matrix 内の transformFromAbstractMatrix<IntMatrix> 内の transformFromvalue - 変換元
Matrix.transformFrom(org.mklab.nfc.matrix.Matrix)public static IntMatrix unit(int size)
size*sizeの単位行列を生成します。
size - サイズ指定
public static IntMatrix unit(int rowSize,
int columnSize)
rowSize*columnSizeの単位行列を生成します。
rowSize - 行の数columnSize - 列の数
public static IntMatrix unit(Matrix matrix)
matrixと同サイズの実単位行列を返します。
matrix - 行列
public static IntMatrix unit(int rowNumber,
int columnNumber,
Matrix block)
matrixのrowNumber*colNumber
倍の実単位行列を返します。
rowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
matrixのrowNum * colNum倍の実単位行列public static IntMatrix zero(Matrix matrix)
matrixと同サイズの零行列を生成します。
matrix - 行列
matrixと同サイズの零行列
public static IntMatrix zero(int rowNumber,
int columnNumber,
Matrix block)
blockのrowNumber*colNumber
倍の零行列を生成します。
rowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber *
columnNumber倍の零行列public static IntMatrix ones(int size)
size*sizeの全成分1の行列を生成します。
size - サイズ指定
size*sizeの全成分1の行列
public static IntMatrix ones(int rowSize,
int columnSize)
rowSize*columnSizeの全成分1の行列を生成します。
rowSize - 行番号の指定columnSize - 列番号の指定
rowSize*columnSizeの全成分1の行列public static IntMatrix ones(Matrix matrix)
matrixと同サイズの全成分1の行列を生成します。
matrix - 行列
public static IntMatrix ones(int rowNumber,
int columNumber,
Matrix block)
blockのrowNumber*colNumber
倍の全成分1の行列を生成します。
rowNumber - 行方向の倍数columNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber *
columnNumber倍の全成分1の行列public static IntMatrix diagonal(int[] diagonalElements)
diagonalElements - 対角成分
public int getElement(int index)
index - 成分の番号
public int getElement(int row,
int column)
row - 行番号column - 列番号
public void setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Matrix source)
FundamentalMatrix の記述:rowIndexで指定した行のcolumnMinimum列からcolumnMaximum
列までの行列sourceを代入します。
FundamentalMatrix 内の setSubMatrixrowIndex - 行番号のリストcolumnMin - 開始列番号(1から始まります)columnMax - 終了列番号(1から始まります)source - 代入する行列FundamentalMatrix.setSubMatrix(org.mklab.nfc.matrix.IntMatrix,
int, int, org.mklab.nfc.matrix.Matrix)
public void setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
IntMatrix source)
rowIndexで指定した行のcolumnMin列からcolumnMax
列までの 行列sourceを代入します。
rowIndex - 行番号を指定する指数columnMin - 列の始まりcolumnMax - 列の終わりsource - 代入する行列
public void setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Matrix source)
FundamentalMatrix の記述:rowIndexで指定した行のcolumnIndexで指定した列に行列sourceを代入します。
FundamentalMatrix 内の setSubMatrixrowIndex - 行番号のリストcolumnIndex - 列番号のリストsource - 代入する行列FundamentalMatrix.setSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Matrix)
public void setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
IntMatrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列source
code>を代入します。
- パラメータ:
rowIndex - 行番号を指定する指数columnIndex - 列番号を指定する指数source - 代入する行列
public void setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Matrix source)
FundamentalMatrix の記述:rowMinimum列目からrowMaximum列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。
FundamentalMatrix 内の setSubMatrixrowMin - 開始行番号(1から始まります)rowMax - 終了行番号(1から始まります)columnIndex - 列番号のリストsource - 代入する行列FundamentalMatrix.setSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.Matrix)
public void setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
IntMatrix source)
rowMin列からrowMax列目の成分のcolumnIndex
で指定された行に、 行列sourceの成分を代入します。
rowMin - 行の始まりrowMax - 行の終わりcolumnIndex - 列指定ベクトルsource - 代入する行列
public void setSubVector(int min,
int max,
IntMatrix source)
minからmaxまでにsourceの成分を代入します。
min - 開始位置(1から始まります)max - 終了位置(1から始まります)source - 代入するベクトル
public void setSubVector(int min,
int max,
Matrix source)
FundamentalMatrix の記述:minimumからmaximumまでにsourceの成分を代入します。
FundamentalMatrix 内の setSubVectormin - 開始位置(1から始まります)max - 終了位置(1から始まります)source - 代入するベクトルFundamentalMatrix.setSubVector(int, int, org.mklab.nfc.matrix.Matrix)
public void setSubVector(IntMatrix index,
Matrix source)
FundamentalMatrix の記述:indexで指定した各成分に行列sourceの成分を代入します。
FundamentalMatrix 内の setSubVectorindex - 成分の番号のリストsource - 代入する行列FundamentalMatrix.setSubVector(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.Matrix)
public void setSubVector(IntMatrix index,
IntMatrix source)
indexで指定した各成分に行列sourceの成分を代入します。
index - 成分の番号を指定する指数source - 代入するベクトル
public void setElement(int index,
int value)
indexで指定した位置に整数valueを代入します。
index - 成分の番号value - 代入する値
public void setElement(int row,
int column,
int value)
valueを代入します。
row - 行番号column - 列番号value - 代入する整数
public static IntMatrix series(int from,
int to)
sourceからtoまでの連続する整数を成分にもつ行ベクトルを返します。
from - 始点to - 終点
public static IntMatrix series(int from,
int to,
int by)
sourceからtoまでのby飛びの整数を成分にもつ行ベクトルを返します
。
from - 始点to - 終点by - 間隔
public IntMatrix add(IntMatrix value)
valueとの和(this+value)を返します。
value - 実数行列
valueとの和public DoubleMatrix add(DoubleMatrix value)
valueとの和(this+value)を返します。
value - 実数行列
valueとの和public BaseMatrix<?,?> add(BaseMatrix<?,?> value)
valueとの和(this+value)を返します。
value - 行列
valueとの和public IntMatrix subtract(IntMatrix value)
valueとの差(this-value)を返します。
value - 行列
valueとの差public IntMatrix addElementWise(int value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の addElementWisevalue - 加える整数
MatrixElementWiseOperator.addElementWise(int)public IntMatrix subtractElementWise(int value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の subtractElementWisevalue - 引く実数
MatrixElementWiseOperator.subtractElementWise(int)public DoubleMatrix subtract(DoubleMatrix value)
valueとの差(this-value)を返します。
value - 行列
valueとの差public BaseMatrix<?,?> subtract(BaseMatrix<?,?> value)
valueとの差(this-value)を返します。
value - 行列
valueとの差public IntMatrix multiply(int value)
Matrix の記述:valueの積を(this*value)を返します。
Matrix 内の multiplyvalue - 整数
valueの積Matrix.multiply(int)public DoubleMatrix multiply(double value)
Matrix の記述:valueの積を(this*value)を返します。
Matrix 内の multiplyvalue - 実数
valueの積Matrix.multiply(double)public Matrix multiply(Scalar<?> value)
Matrix の記述:valueの積を返します。
Matrix 内の multiplyvalue - スカラー
valueの積Matrix.multiply(org.mklab.nfc.scalar.Scalar)public IntMatrix multiplyElementWise(IntMatrix value)
valueとの成分毎の積を成分にもつ行列を返します。
value - 実数行列
public IntMatrix multiply(IntMatrix value)
valueとの積(this*value)を返します。
value - 整数行列
valueとの積public DoubleMatrix multiply(DoubleMatrix value)
valueとの積(this*value)を返します。
value - 実数行列
valueとの積public BaseMatrix<?,?> multiply(BaseMatrix<?,?> value)
valueとの積(this*value)を返します。
value - 行列
valueとの積public IntMatrix conjugate()
Matrix 内の conjugatepublic IntMatrix powerElementWise(int scalar)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の powerElementWisescalar - 累乗の指数
MatrixElementWiseOperator.powerElementWise(int)public DoubleMatrix powerElementWise(double scalar)
scalar - 累乗の指数
public NumericalMatrix<?> powerElementWise(NumericalScalar<?> scalar)
scalar - 累乗の指数
public IntMatrix powerElementWise(IntMatrix matrix)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の powerElementWisematrix - 累乗の指数を成分とする行列
MatrixElementWiseOperator.powerElementWise(org.mklab.nfc.matrix.IntMatrix)public DoubleMatrix powerElementWise(DoubleMatrix matrix)
matrix - 累乗の指数を成分とする行列
public NumericalMatrix<?> powerElementWise(NumericalMatrix<?> matrix)
matrix - 累乗の指数を成分とする行列
public static IntMatrix powerElementWise(int scalar,
IntMatrix matrix)
scalar - 累乗の対象matrix - 累乗の指数を成分とする行列
public static Matrix powerElementWise(int scalar,
Matrix matrix)
scalar - 累乗の対象matrix - 累乗の指数を成分とする行列
public boolean isZero(double tolerance)
Matrix の記述:
Matrix 内の isZerotolerance - 許容誤差
Matrix.isZero(double)public boolean isUnit(double tolerance)
Matrix の記述:
Matrix 内の isUnittolerance - 許容誤差
Matrix.isUnit(double)public DoubleMatrix inverse()
Matrix の記述:this -1 )を返します。
Matrix 内の inverseMatrix.inverse()public IntMatrix divide(int value)
Matrix の記述:this/value)を返します。
Matrix 内の dividevalue - 割る整数
valueとの商Matrix.divide(int)public DoubleMatrix divide(double value)
Matrix の記述:this/value)を返します。
Matrix 内の dividevalue - 割る実数
valueとの商Matrix.divide(double)public Matrix divide(Scalar<?> value)
Matrix の記述:
Matrix 内の dividevalue - スカラー
valueの商Matrix.divide(org.mklab.nfc.scalar.Scalar)public DoubleMatrix divide(IntMatrix value)
valueの逆行列との積(this*value -1
)を返します。
value - 行列
public DoubleMatrix divide(DoubleMatrix value)
valueの逆行列との積(this*value -1
)を返します。
value - 行列
valueの逆行列との積public BaseMatrix<?,?> divide(BaseMatrix<?,?> value)
valueとの逆行列の積(this*m -1 )を返します。
value - 行列
valueとの逆行列の積public DoubleMatrix divideElementWise(IntMatrix value)
valueとの成分毎の商を成分にもつ行列を返します。
value - 割る行列
public DoubleMatrix leftDivide(IntMatrix value)
valueとの積(this*value -1
)を返します。
value - 行列
valueとの積public DoubleMatrix leftDivideElementWise(IntMatrix value)
valueの成分毎の左からの商を成分にもつ行列を返します。
value - 割られる行列
public IntMatrix unaryMinus()
Matrix の記述:
Matrix 内の unaryMinusMatrix.unaryMinus()public IntMatrix transpose()
FundamentalMatrix の記述:this T )を生成します。
FundamentalMatrix 内の transposeFundamentalMatrix.transpose()public IntMatrix conjugateTranspose()
Matrix の記述:
Matrix 内の conjugateTransposeMatrix.conjugateTranspose()
public IntMatrix getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
FundamentalMatrix の記述:this(rowMinimum:rowMaximum,columnMinimum:columnMaximum)を生成します。
FundamentalMatrix 内の getSubMatrixrowMin - 開始行番号(1から始まります)rowMax - 終了行番号(1から始まります)columnMin - 開始列番号(1から始まります)columnMax - 終了列番号(1から始まります)
FundamentalMatrix.getSubMatrix(int, int, int, int)public IntMatrix getSubVector(IntMatrix index)
FundamentalMatrix の記述:indexで指定した成分を成分とする部分行列を生成します。
FundamentalMatrix 内の getSubVectorindex - 行番号を含むベクトル
FundamentalMatrix.getSubVector(org.mklab.nfc.matrix.IntMatrix)
public IntMatrix getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
FundamentalMatrix の記述:columnMinimum列からcolumnMaximum列まで、
rowIndexで指定された行を成分とする部分行列を生成します。
FundamentalMatrix 内の getSubMatrixrowIndex - 行指定ベクトルcolumnMin - 開始列番号(1から始まります)columnMax - 終了列番号(1から始まります)
FundamentalMatrix.getSubMatrix(org.mklab.nfc.matrix.IntMatrix,
int, int)
public IntMatrix getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
FundamentalMatrix の記述:rowMinimum行からrowMaximum行目で、columnIndex
で指定された列を成分とする部分行列を生成します。
FundamentalMatrix 内の getSubMatrixrowMin - 開始行番号(1から始まります)rowMax - 終了行番号(1から始まります)columnIndex - 列指定ベクトル
FundamentalMatrix.getSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix)
public IntMatrix getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
FundamentalMatrix の記述:rowIndexで指定された行で、columnIndex
で指定された列を成分とする部分行列を生成します。
FundamentalMatrix 内の getSubMatrixrowIndex - 行指定ベクトルcolumnIndex - 列指定ベクトル
FundamentalMatrix.getSubMatrix(org.mklab.nfc.matrix.IntMatrix,
org.mklab.nfc.matrix.IntMatrix)public IntMatrix appendDown(IntMatrix value)
valueを連結した行列を返します。
value - つける行列
valueを連結した行列public IntMatrix appendRight(IntMatrix value)
valueを連結した行列を返します。
value - つける整数行列
valueを連結した行列public void printElements(Writer output)
Grid の記述:
Grid 内の printElementsoutput - ライターGrid.printElements(java.io.Writer)
public void printElements(Writer output,
int maxColumnSize)
Grid の記述:
Grid 内の printElementsoutput - ライターmaxColumnSize - 1行の出力する列の最大数Grid.printElements(java.io.Writer, int)public IntMatrix clone()
AbstractGrid の記述:
Grid 内の cloneAbstractGrid<IntMatrix> 内の cloneAbstractGrid.clone()
public void exchangeRow(int row1,
int row2)
Grid の記述:row1行とrow2行を入れ替えます。
Grid 内の exchangeRowrow1 - 行番号1row2 - 行番号1Grid.exchangeRow(int, int)
public void exchangeColumn(int column1,
int column2)
Grid の記述:column1列とcolumn2列を入れ替えます。
Grid 内の exchangeColumncolumn1 - 列番号1column2 - 列番号2Grid.exchangeColumn(int, int)public void copy(Matrix source)
FundamentalMatrix の記述:sourceの成分をコピーします。
FundamentalMatrix 内の copysource - コピー元の行列FundamentalMatrix.copy(org.mklab.nfc.matrix.Matrix)public void copy(IntMatrix source)
sourceの各成分をコピーします。
source - 実数行列public IntMatrix diagonalToVector()
FundamentalMatrix の記述:
FundamentalMatrix 内の diagonalToVectorFundamentalMatrix.diagonalToVector()public IntMatrix vectorToDiagonal()
FundamentalMatrix の記述:
FundamentalMatrix 内の vectorToDiagonalFundamentalMatrix.vectorToDiagonal()
public IntMatrix reshape(int newRowSize,
int newColumnSize)
FundamentalMatrix の記述:newRowSize*newColumnSizeに変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize *
newColumnSize個の成分を持っていないと、エラーになる。
FundamentalMatrix 内の reshapenewRowSize - 行の数newColumnSize - 列の数
FundamentalMatrix.reshape(int, int)
public IntMatrix resize(int newRowSize,
int newColumnSize)
FundamentalMatrix の記述:newRowSize*newColumnSizeにサイズ変更します。
FundamentalMatrix.reshape(int, int)とは異なり、成分位置の変更はせず, 自身より大きなサイズに変更する時は、0で埋められ、
自身より小さなサイズに変更する時は余分な成分は切り取られます。
FundamentalMatrix 内の resizenewRowSize - 指定行の数newColumnSize - 指定列の数
FundamentalMatrix.resize(int, int)
public void removeColumnVectors(int min,
int max)
Grid の記述:columnMin列からcolumnMax列までを削除します。
Grid 内の removeColumnVectorsmin - 列の始まりmax - 列の終わりGrid.removeColumnVectors(int, int)public void removeColumnVectors(IntMatrix index)
Grid の記述:columnIndexで指定された列を削除します。
Grid 内の removeColumnVectorsindex - 列指定ベクトルGrid.removeColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public void removeRowVectors(int min,
int max)
Grid の記述:rowMin行からrowMax行までを削除します。
Grid 内の removeRowVectorsmin - 行の始まりmax - 行の終わりGrid.removeRowVectors(int, int)public void removeRowVectors(IntMatrix index)
Grid の記述:rowIndexで指定された行を削除します。
Grid 内の removeRowVectorsindex - 行指定ベクトルGrid.removeRowVectors(org.mklab.nfc.matrix.IntMatrix)public IndexedMatrix<IntMatrix> sort()
IntMatrix)を返します。
自身が複素行列のときは、絶対値でソートします。
public IndexedMatrix<IntMatrix> sortRowWise()
IntMatrix)を返します。
自身が複素行列のときは、絶対値でソートします。
public IndexedMatrix<IntMatrix> sortColumnWise()
IntMatrix)を返します。
自身が複素行列のときは、絶対値でソートします。
public int sum()
public int product()
public IntMatrix productRowWise()
Matrix の記述:
Matrix 内の productRowWiseMatrix.productRowWise()public IntMatrix productColumnWise()
Matrix の記述:
Matrix 内の productColumnWiseMatrix.productColumnWise()
public BooleanMatrix compareElementWise(String operator,
int opponent)
MatrixElementWiseOperator の記述:valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
MatrixElementWiseOperator 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, int)
public BooleanMatrix compareElementWise(String operator,
double opponent)
MatrixElementWiseOperator の記述:valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
MatrixElementWiseOperator 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, double)
public BooleanMatrix compareElementWise(String operator,
Scalar<?> opponent)
MatrixElementWiseOperator の記述:valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
MatrixElementWiseOperator 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String,
org.mklab.nfc.scalar.Scalar)
public BooleanMatrix compareElementWise(String operator,
Matrix opponent)
FundamentalMatrix の記述:opponentと成分毎にoperatorで指定された演算子で比較した結果を
BooleanMatrixで返します。
FundamentalMatrix 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
BooleanMatrixFundamentalMatrix.compareElementWise(java.lang.String,
org.mklab.nfc.matrix.Matrix)
public BooleanMatrix compareElementWise(String operator,
IntMatrix opponent)
opponentと成分毎にoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
operator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent - 比較対象
public void writeMxFormat(OutputStream output,
String name)
throws IOException
MatxObject の記述:
MatxObject 内の writeMxFormatoutput - 出力ストリームname - データの名前
IOException - 出力ストリームに出力できない場合MatxObject.writeMxFormat(java.io.OutputStream,
java.lang.String)
public void writeMxFormat(String fileName,
String name)
throws IOException
MatxObject の記述:
MatxObject 内の writeMxFormatfileName - ファイル名name - データの名前
IOException - ファイルに出力できない場合MatxObject.writeMxFormat(java.lang.String,
java.lang.String)
public static IntMatrix readMxFormat(InputStream input,
MxDataHead head)
throws IOException
MatxMatrix.readMxFormat(InputStream)
から呼ばれる中間メソッドです。
このメソッドは直接使わず
の形でMatrixA = Matrix.MatxMatrix.readMxFormat(String)
Matrixの
MatxMatrix.readMxFormat(String)を使う
input - 入力ストリームhead - ヘッダー
IOException - 入力ストリームから読み込めない場合public String toMmString()
MatxObject の記述:
MatxObject 内の toMmStringMatxObject.toMmString()public String toMmString(String format)
MatxObject の記述:
MatxObject 内の toMmStringformat - 出力フォーマット
MatxObject.toMmString(java.lang.String)
public void writeMmFormat(String fileName,
String name)
throws IOException
MatxObject の記述:
MatxObject 内の writeMmFormatfileName - ファイル名name - 名前
IOException - ファイルに出力できない場合MatxObject.writeMmFormat(java.lang.String,
java.lang.String)
public void writeMmFormat(Writer output,
String name,
boolean withNewLine)
throws IOException
MatxObject の記述:
MatxObject 内の writeMmFormatoutput - ライターname - 名前withNewLine - セミコロンと改行コードを出力するならばtrue、そうでなければfalse
IOException - ライターに出力できない場合MatxObject.writeMmFormat(java.io.Writer,
java.lang.String, boolean)
public void writeMatFormat(String fileName)
throws IOException
fileName - ファイル名
IOException - ファイルに出力できない場合
public void writeMatFormat(OutputStream output)
throws IOException
output - 出力ストリーム
IOException - 入出力エラーが発生した場合
public void setSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax,
Matrix source)
FundamentalMatrix の記述:sourceを代入します。
FundamentalMatrix 内の setSubMatrixrowMin - 開始行番号(1から始まります)rowMax - 終了行番号(1から始まります)columnMin - 開始列番号(1から始まります)columnMax - 終了列番号(1から始まります)source - 代入する行列FundamentalMatrix.setSubMatrix(int, int, int, int, org.mklab.nfc.matrix.Matrix)
public void setSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax,
IntMatrix source)
sourceを代入します。
rowMin - 開始行番号(1から始まります)rowMax - 終了行番号(1から始まります)columnMin - 開始列番号(1から始まります)columnMax - 終了列番号(1から始まります)source - 代入する行列public Matrix inverseElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の inverseElementWiseMatrixElementWiseOperator.inverseElementWise()public BooleanMatrix isFiniteElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の isFiniteElementWiseMatrixElementWiseOperator.isFiniteElementWise()public BooleanMatrix isInfiniteElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の isInfiniteElementWiseMatrixElementWiseOperator.isInfiniteElementWise()public BooleanMatrix isNanElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の isNanElementWiseMatrixElementWiseOperator.isNanElementWise()public Matrix addElementWise(double scalar)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の addElementWisescalar - 加える実数
MatrixElementWiseOperator.addElementWise(double)public Matrix addElementWise(Scalar<?> value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の addElementWisevalue - 加えるスカラー
MatrixElementWiseOperator.addElementWise(org.mklab.nfc.scalar.Scalar)public Matrix subtractElementWise(double scalar)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の subtractElementWisescalar - 引く実数
MatrixElementWiseOperator.subtractElementWise(double)public Matrix subtractElementWise(Scalar<?> value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の subtractElementWisevalue - 引くスカラー
MatrixElementWiseOperator.subtractElementWise(org.mklab.nfc.scalar.Scalar)public IntMatrix remElementWise(double scalar)
scalar - 割る数
public IntMatrix cumulativeSum()
Matrix の記述:
Matrix 内の cumulativeSumMatrix.cumulativeSum()public IntMatrix cumulativeSumRowWise()
Matrix の記述:
Matrix 内の cumulativeSumRowWiseMatrix.cumulativeSumRowWise()public IntMatrix cumulativeSumColumnWise()
Matrix の記述:
Matrix 内の cumulativeSumColumnWiseMatrix.cumulativeSumColumnWise()public IntMatrix cumulativeProduct()
Matrix の記述:
Matrix 内の cumulativeProductMatrix.cumulativeProduct()public IntMatrix cumulativeProductRowWise()
Matrix の記述:
Matrix 内の cumulativeProductRowWiseMatrix.cumulativeProductRowWise()public IntMatrix cumulativeProductColumnWise()
Matrix の記述:
Matrix 内の cumulativeProductColumnWiseMatrix.cumulativeProductColumnWise()public IntMatrix sumColumnWise()
Matrix の記述:
Matrix 内の sumColumnWiseMatrix.sumColumnWise()public IntMatrix sumRowWise()
Matrix の記述:
Matrix 内の sumRowWiseMatrix.sumRowWise()public IntMatrix meanRowWise()
Matrix の記述:
Matrix 内の meanRowWiseMatrix.meanRowWise()public int variance()
public IntMatrix covariance(IntMatrix opponent)
opponentとの共分散行列を返します。
opponent - 対となるベクトル
public IntMatrix meanColumnWise()
Matrix の記述:
Matrix 内の meanColumnWiseMatrix.meanColumnWise()
public Matrix inverse(double tolerance,
boolean stopIfSingular)
Matrix の記述:this -1 )を返します。
Matrix 内の inversetolerance - 許容誤差stopIfSingular - trueならば、正則でない場合、処理を中止し、例外を投げます。
Matrix.inverse(double, boolean)public IntMatrix ceilElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の ceilElementWiseMatrixElementWiseOperator.ceilElementWise()public IntMatrix floorElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の floorElementWiseMatrixElementWiseOperator.floorElementWise()public IntMatrix fixElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の fixElementWiseMatrixElementWiseOperator.fixElementWise()public IntMatrix roundElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の roundElementWiseMatrixElementWiseOperator.roundElementWise()public IntMatrix roundToZeroElementWise(double tolerance)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の roundToZeroElementWisetolerance - 許容誤差
MatrixElementWiseOperator.roundToZeroElementWise(double)public IntMatrix maxElementWise(IntMatrix opponent)
opponent - 比較対象
public IntMatrix minElementWise(IntMatrix opponent)
opponent - 比較対象
public IntMatrix createUnit(int rowSize,
int columnSize)
Matrix の記述:rowSize*columnSizeの単位行列を生成します。
Matrix 内の createUnitrowSize - 行の数columnSize - 列の数
rowSize*columnSizeの単位行列Matrix.createUnit(int, int)
public IntMatrix createZero(int rowSize,
int columnSize)
Matrix の記述:rowSize*columnSizeの零行列を生成します。
Matrix 内の createZerorowSize - 行の数columnSize - 列の数
rowSize*columnSizeの零行列Matrix.createZero(int, int)
public IntMatrix createOnes(int rowSize,
int columnSize)
Matrix の記述:rowSize*columnSizeの全成分が1である行列を生成します。
Matrix 内の createOnesrowSize - 行の数columnSize - 列の数
rowSize*columnSizeの全成分が1である行列Matrix.createOnes(int, int)public boolean isComplex()
Matrix の記述:
Matrix 内の isComplexMatrix.isComplex()public boolean isReal()
Matrix の記述:
Matrix 内の isRealMatrix.isReal()public IntMatrix getImaginaryPart()
Matrix の記述:
Matrix 内の getImaginaryPartMatrix.getImaginaryPart()public IntMatrix getRealPart()
Matrix の記述:
Matrix 内の getRealPartMatrix.getRealPart()public void setRealPart(Matrix realPart)
Matrix の記述:
Matrix 内の setRealPartrealPart - 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.Matrix)public void setRealPart(IntMatrix realPart)
Matrix の記述:
Matrix 内の setRealPartrealPart - 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.IntMatrix)public void setRealPart(DoubleMatrix realPart)
Matrix の記述:
Matrix 内の setRealPartrealPart - 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.DoubleMatrix)public void setRealPart(BaseMatrix<?,?> realPart)
Matrix の記述:
Matrix 内の setRealPartrealPart - 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.BaseMatrix)public void setImaginaryPart(Matrix imaginaryPart)
Matrix の記述:
Matrix 内の setImaginaryPartimaginaryPart - 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.Matrix)public void setImaginaryPart(IntMatrix imaginaryPart)
Matrix の記述:
Matrix 内の setImaginaryPartimaginaryPart - 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.IntMatrix)public void setImaginaryPart(DoubleMatrix imaginaryPart)
Matrix の記述:
Matrix 内の setImaginaryPartimaginaryPart - 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.DoubleMatrix)public void setImaginaryPart(BaseMatrix<?,?> imaginaryPart)
Matrix の記述:
Matrix 内の setImaginaryPartimaginaryPart - 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.BaseMatrix)public DoubleComplexMatrix toComplex()
Matrix の記述:
Matrix 内の toComplexMatrix.toComplex()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||