|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の equals
Object.equals(java.lang.Object)
public boolean equals(Matrix opponent, double tolerance)
FundamentalMatrix
の記述:opponent
と値が許容誤差以内で等しいか判定します。
FundamentalMatrix
内の equals
opponent
- 比較する行列tolerance
- 許容誤差
FundamentalMatrix.equals(org.mklab.nfc.matrix.Matrix, double)
public boolean equals(IntMatrix opponent)
opponent
と等しか判定します。
opponent
- 整数行列
opponent
と等しければtrue,そうでなければfalsepublic boolean equals(IntMatrix opponent, double tolerance)
opponent
- 整数行列tolerance
- 許容誤差
public int hashCode()
AbstractGrid<IntMatrix>
内の hashCode
AbstractGrid.hashCode()
public boolean isTransformableFrom(Matrix value)
Matrix
の記述:
Matrix
内の isTransformableFrom
AbstractMatrix<IntMatrix>
内の isTransformableFrom
value
- 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)
public IntMatrix transformFrom(Matrix value)
Matrix
の記述:
Matrix
内の transformFrom
AbstractMatrix<IntMatrix>
内の transformFrom
value
- 変換元
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
内の setSubMatrix
rowIndex
- 行番号のリスト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
内の setSubMatrix
rowIndex
- 行番号のリスト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
内の setSubMatrix
rowMin
- 開始行番号(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
内の setSubVector
min
- 開始位置(1から始まります)max
- 終了位置(1から始まります)source
- 代入するベクトルFundamentalMatrix.setSubVector(int, int, org.mklab.nfc.matrix.Matrix)
public void setSubVector(IntMatrix index, Matrix source)
FundamentalMatrix
の記述:index
で指定した各成分に行列source
の成分を代入します。
FundamentalMatrix
内の setSubVector
index
- 成分の番号のリスト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
内の addElementWise
value
- 加える整数
MatrixElementWiseOperator.addElementWise(int)
public IntMatrix subtractElementWise(int value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の subtractElementWise
value
- 引く実数
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
内の multiply
value
- 整数
value
の積Matrix.multiply(int)
public DoubleMatrix multiply(double value)
Matrix
の記述:value
の積を(this
*value
)を返します。
Matrix
内の multiply
value
- 実数
value
の積Matrix.multiply(double)
public Matrix multiply(Scalar<?> value)
Matrix
の記述:value
の積を返します。
Matrix
内の multiply
value
- スカラー
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
内の conjugate
public IntMatrix powerElementWise(int scalar)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の powerElementWise
scalar
- 累乗の指数
MatrixElementWiseOperator.powerElementWise(int)
public DoubleMatrix powerElementWise(double scalar)
scalar
- 累乗の指数
public NumericalMatrix<?> powerElementWise(NumericalScalar<?> scalar)
scalar
- 累乗の指数
public IntMatrix powerElementWise(IntMatrix matrix)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の powerElementWise
matrix
- 累乗の指数を成分とする行列
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
内の isZero
tolerance
- 許容誤差
Matrix.isZero(double)
public boolean isUnit(double tolerance)
Matrix
の記述:
Matrix
内の isUnit
tolerance
- 許容誤差
Matrix.isUnit(double)
public DoubleMatrix inverse()
Matrix
の記述:this
-1 )を返します。
Matrix
内の inverse
Matrix.inverse()
public IntMatrix divide(int value)
Matrix
の記述:this
/value
)を返します。
Matrix
内の divide
value
- 割る整数
value
との商Matrix.divide(int)
public DoubleMatrix divide(double value)
Matrix
の記述:this
/value
)を返します。
Matrix
内の divide
value
- 割る実数
value
との商Matrix.divide(double)
public Matrix divide(Scalar<?> value)
Matrix
の記述:
Matrix
内の divide
value
- スカラー
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
内の unaryMinus
Matrix.unaryMinus()
public IntMatrix transpose()
FundamentalMatrix
の記述:this
T )を生成します。
FundamentalMatrix
内の transpose
FundamentalMatrix.transpose()
public IntMatrix conjugateTranspose()
Matrix
の記述:
Matrix
内の conjugateTranspose
Matrix.conjugateTranspose()
public IntMatrix getSubMatrix(int rowMin, int rowMax, int columnMin, int columnMax)
FundamentalMatrix
の記述:this(rowMinimum:rowMaximum,columnMinimum:columnMaximum)
を生成します。
FundamentalMatrix
内の getSubMatrix
rowMin
- 開始行番号(1から始まります)rowMax
- 終了行番号(1から始まります)columnMin
- 開始列番号(1から始まります)columnMax
- 終了列番号(1から始まります)
FundamentalMatrix.getSubMatrix(int, int, int, int)
public IntMatrix getSubVector(IntMatrix index)
FundamentalMatrix
の記述:index
で指定した成分を成分とする部分行列を生成します。
FundamentalMatrix
内の getSubVector
index
- 行番号を含むベクトル
FundamentalMatrix.getSubVector(org.mklab.nfc.matrix.IntMatrix)
public IntMatrix getSubMatrix(IntMatrix rowIndex, int columnMin, int columnMax)
FundamentalMatrix
の記述:columnMinimum
列からcolumnMaximum
列まで、
rowIndex
で指定された行を成分とする部分行列を生成します。
FundamentalMatrix
内の getSubMatrix
rowIndex
- 行指定ベクトル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
内の getSubMatrix
rowMin
- 開始行番号(1から始まります)rowMax
- 終了行番号(1から始まります)columnIndex
- 列指定ベクトル
FundamentalMatrix.getSubMatrix(int, int,
org.mklab.nfc.matrix.IntMatrix)
public IntMatrix getSubMatrix(IntMatrix rowIndex, IntMatrix columnIndex)
FundamentalMatrix
の記述:rowIndex
で指定された行で、columnIndex
で指定された列を成分とする部分行列を生成します。
FundamentalMatrix
内の getSubMatrix
rowIndex
- 行指定ベクトル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
内の printElements
output
- ライターGrid.printElements(java.io.Writer)
public void printElements(Writer output, int maxColumnSize)
Grid
の記述:
Grid
内の printElements
output
- ライターmaxColumnSize
- 1行の出力する列の最大数Grid.printElements(java.io.Writer, int)
public IntMatrix clone()
AbstractGrid
の記述:
Grid
内の clone
AbstractGrid<IntMatrix>
内の clone
AbstractGrid.clone()
public void exchangeRow(int row1, int row2)
Grid
の記述:row1
行とrow2
行を入れ替えます。
Grid
内の exchangeRow
row1
- 行番号1row2
- 行番号1Grid.exchangeRow(int, int)
public void exchangeColumn(int column1, int column2)
Grid
の記述:column1
列とcolumn2
列を入れ替えます。
Grid
内の exchangeColumn
column1
- 列番号1column2
- 列番号2Grid.exchangeColumn(int, int)
public void copy(Matrix source)
FundamentalMatrix
の記述:source
の成分をコピーします。
FundamentalMatrix
内の copy
source
- コピー元の行列FundamentalMatrix.copy(org.mklab.nfc.matrix.Matrix)
public void copy(IntMatrix source)
source
の各成分をコピーします。
source
- 実数行列public IntMatrix diagonalToVector()
FundamentalMatrix
の記述:
FundamentalMatrix
内の diagonalToVector
FundamentalMatrix.diagonalToVector()
public IntMatrix vectorToDiagonal()
FundamentalMatrix
の記述:
FundamentalMatrix
内の vectorToDiagonal
FundamentalMatrix.vectorToDiagonal()
public IntMatrix reshape(int newRowSize, int newColumnSize)
FundamentalMatrix
の記述:newRowSize
*newColumnSize
に変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize
*
newColumnSize
個の成分を持っていないと、エラーになる。
FundamentalMatrix
内の reshape
newRowSize
- 行の数newColumnSize
- 列の数
FundamentalMatrix.reshape(int, int)
public IntMatrix resize(int newRowSize, int newColumnSize)
FundamentalMatrix
の記述:newRowSize
*newColumnSize
にサイズ変更します。
FundamentalMatrix.reshape(int, int)
とは異なり、成分位置の変更はせず, 自身より大きなサイズに変更する時は、0で埋められ、
自身より小さなサイズに変更する時は余分な成分は切り取られます。
FundamentalMatrix
内の resize
newRowSize
- 指定行の数newColumnSize
- 指定列の数
FundamentalMatrix.resize(int, int)
public void removeColumnVectors(int min, int max)
Grid
の記述:columnMin
列からcolumnMax
列までを削除します。
Grid
内の removeColumnVectors
min
- 列の始まりmax
- 列の終わりGrid.removeColumnVectors(int, int)
public void removeColumnVectors(IntMatrix index)
Grid
の記述:columnIndex
で指定された列を削除します。
Grid
内の removeColumnVectors
index
- 列指定ベクトルGrid.removeColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public void removeRowVectors(int min, int max)
Grid
の記述:rowMin
行からrowMax
行までを削除します。
Grid
内の removeRowVectors
min
- 行の始まりmax
- 行の終わりGrid.removeRowVectors(int, int)
public void removeRowVectors(IntMatrix index)
Grid
の記述:rowIndex
で指定された行を削除します。
Grid
内の removeRowVectors
index
- 行指定ベクトル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
内の productRowWise
Matrix.productRowWise()
public IntMatrix productColumnWise()
Matrix
の記述:
Matrix
内の productColumnWise
Matrix.productColumnWise()
public BooleanMatrix compareElementWise(String operator, int opponent)
MatrixElementWiseOperator
の記述:value
をoperator
で指定された演算子で比較し,
BooleanMatrix
で返します。
MatrixElementWiseOperator
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent
- 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, int)
public BooleanMatrix compareElementWise(String operator, double opponent)
MatrixElementWiseOperator
の記述:value
をoperator
で指定された演算子で比較し,
BooleanMatrix
で返します。
MatrixElementWiseOperator
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent
- 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, double)
public BooleanMatrix compareElementWise(String operator, Scalar<?> opponent)
MatrixElementWiseOperator
の記述:value
をoperator
で指定された演算子で比較し,
BooleanMatrix
で返します。
MatrixElementWiseOperator
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent
- 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String,
org.mklab.nfc.scalar.Scalar)
public BooleanMatrix compareElementWise(String operator, Matrix opponent)
FundamentalMatrix
の記述:opponent
と成分毎にoperator
で指定された演算子で比較した結果を
BooleanMatrix
で返します。
FundamentalMatrix
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent
- 比較対象
BooleanMatrix
FundamentalMatrix.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
内の writeMxFormat
output
- 出力ストリームname
- データの名前
IOException
- 出力ストリームに出力できない場合MatxObject.writeMxFormat(java.io.OutputStream,
java.lang.String)
public void writeMxFormat(String fileName, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMxFormat
fileName
- ファイル名name
- データの名前
IOException
- ファイルに出力できない場合MatxObject.writeMxFormat(java.lang.String,
java.lang.String)
public static IntMatrix readMxFormat(InputStream input, MxDataHead head) throws IOException
MatxMatrix.readMxFormat(InputStream)
から呼ばれる中間メソッドです。
このメソッドは直接使わず
の形でMatrix
A = Matrix.MatxMatrix.readMxFormat(String)
Matrix
の
MatxMatrix.readMxFormat(String)
を使う
input
- 入力ストリームhead
- ヘッダー
IOException
- 入力ストリームから読み込めない場合public String toMmString()
MatxObject
の記述:
MatxObject
内の toMmString
MatxObject.toMmString()
public String toMmString(String format)
MatxObject
の記述:
MatxObject
内の toMmString
format
- 出力フォーマット
MatxObject.toMmString(java.lang.String)
public void writeMmFormat(String fileName, String name) throws IOException
MatxObject
の記述:
MatxObject
内の writeMmFormat
fileName
- ファイル名name
- 名前
IOException
- ファイルに出力できない場合MatxObject.writeMmFormat(java.lang.String,
java.lang.String)
public void writeMmFormat(Writer output, String name, boolean withNewLine) throws IOException
MatxObject
の記述:
MatxObject
内の writeMmFormat
output
- ライター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
内の setSubMatrix
rowMin
- 開始行番号(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
内の inverseElementWise
MatrixElementWiseOperator.inverseElementWise()
public BooleanMatrix isFiniteElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の isFiniteElementWise
MatrixElementWiseOperator.isFiniteElementWise()
public BooleanMatrix isInfiniteElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の isInfiniteElementWise
MatrixElementWiseOperator.isInfiniteElementWise()
public BooleanMatrix isNanElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の isNanElementWise
MatrixElementWiseOperator.isNanElementWise()
public Matrix addElementWise(double scalar)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の addElementWise
scalar
- 加える実数
MatrixElementWiseOperator.addElementWise(double)
public Matrix addElementWise(Scalar<?> value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の addElementWise
value
- 加えるスカラー
MatrixElementWiseOperator.addElementWise(org.mklab.nfc.scalar.Scalar)
public Matrix subtractElementWise(double scalar)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の subtractElementWise
scalar
- 引く実数
MatrixElementWiseOperator.subtractElementWise(double)
public Matrix subtractElementWise(Scalar<?> value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の subtractElementWise
value
- 引くスカラー
MatrixElementWiseOperator.subtractElementWise(org.mklab.nfc.scalar.Scalar)
public IntMatrix remElementWise(double scalar)
scalar
- 割る数
public IntMatrix cumulativeSum()
Matrix
の記述:
Matrix
内の cumulativeSum
Matrix.cumulativeSum()
public IntMatrix cumulativeSumRowWise()
Matrix
の記述:
Matrix
内の cumulativeSumRowWise
Matrix.cumulativeSumRowWise()
public IntMatrix cumulativeSumColumnWise()
Matrix
の記述:
Matrix
内の cumulativeSumColumnWise
Matrix.cumulativeSumColumnWise()
public IntMatrix cumulativeProduct()
Matrix
の記述:
Matrix
内の cumulativeProduct
Matrix.cumulativeProduct()
public IntMatrix cumulativeProductRowWise()
Matrix
の記述:
Matrix
内の cumulativeProductRowWise
Matrix.cumulativeProductRowWise()
public IntMatrix cumulativeProductColumnWise()
Matrix
の記述:
Matrix
内の cumulativeProductColumnWise
Matrix.cumulativeProductColumnWise()
public IntMatrix sumColumnWise()
Matrix
の記述:
Matrix
内の sumColumnWise
Matrix.sumColumnWise()
public IntMatrix sumRowWise()
Matrix
の記述:
Matrix
内の sumRowWise
Matrix.sumRowWise()
public IntMatrix meanRowWise()
Matrix
の記述:
Matrix
内の meanRowWise
Matrix.meanRowWise()
public int variance()
public IntMatrix covariance(IntMatrix opponent)
opponent
との共分散行列を返します。
opponent
- 対となるベクトル
public IntMatrix meanColumnWise()
Matrix
の記述:
Matrix
内の meanColumnWise
Matrix.meanColumnWise()
public Matrix inverse(double tolerance, boolean stopIfSingular)
Matrix
の記述:this
-1 )を返します。
Matrix
内の inverse
tolerance
- 許容誤差stopIfSingular
- trueならば、正則でない場合、処理を中止し、例外を投げます。
Matrix.inverse(double, boolean)
public IntMatrix ceilElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の ceilElementWise
MatrixElementWiseOperator.ceilElementWise()
public IntMatrix floorElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の floorElementWise
MatrixElementWiseOperator.floorElementWise()
public IntMatrix fixElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の fixElementWise
MatrixElementWiseOperator.fixElementWise()
public IntMatrix roundElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の roundElementWise
MatrixElementWiseOperator.roundElementWise()
public IntMatrix roundToZeroElementWise(double tolerance)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の roundToZeroElementWise
tolerance
- 許容誤差
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
内の createUnit
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の単位行列Matrix.createUnit(int, int)
public IntMatrix createZero(int rowSize, int columnSize)
Matrix
の記述:rowSize
*columnSize
の零行列を生成します。
Matrix
内の createZero
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の零行列Matrix.createZero(int, int)
public IntMatrix createOnes(int rowSize, int columnSize)
Matrix
の記述:rowSize
*columnSize
の全成分が1である行列を生成します。
Matrix
内の createOnes
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の全成分が1である行列Matrix.createOnes(int, int)
public boolean isComplex()
Matrix
の記述:
Matrix
内の isComplex
Matrix.isComplex()
public boolean isReal()
Matrix
の記述:
Matrix
内の isReal
Matrix.isReal()
public IntMatrix getImaginaryPart()
Matrix
の記述:
Matrix
内の getImaginaryPart
Matrix.getImaginaryPart()
public IntMatrix getRealPart()
Matrix
の記述:
Matrix
内の getRealPart
Matrix.getRealPart()
public void setRealPart(Matrix realPart)
Matrix
の記述:
Matrix
内の setRealPart
realPart
- 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.Matrix)
public void setRealPart(IntMatrix realPart)
Matrix
の記述:
Matrix
内の setRealPart
realPart
- 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.IntMatrix)
public void setRealPart(DoubleMatrix realPart)
Matrix
の記述:
Matrix
内の setRealPart
realPart
- 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.DoubleMatrix)
public void setRealPart(BaseMatrix<?,?> realPart)
Matrix
の記述:
Matrix
内の setRealPart
realPart
- 実部行列Matrix.setRealPart(org.mklab.nfc.matrix.BaseMatrix)
public void setImaginaryPart(Matrix imaginaryPart)
Matrix
の記述:
Matrix
内の setImaginaryPart
imaginaryPart
- 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.Matrix)
public void setImaginaryPart(IntMatrix imaginaryPart)
Matrix
の記述:
Matrix
内の setImaginaryPart
imaginaryPart
- 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.IntMatrix)
public void setImaginaryPart(DoubleMatrix imaginaryPart)
Matrix
の記述:
Matrix
内の setImaginaryPart
imaginaryPart
- 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.DoubleMatrix)
public void setImaginaryPart(BaseMatrix<?,?> imaginaryPart)
Matrix
の記述:
Matrix
内の setImaginaryPart
imaginaryPart
- 虚部行列Matrix.setImaginaryPart(org.mklab.nfc.matrix.BaseMatrix)
public DoubleComplexMatrix toComplex()
Matrix
の記述:
Matrix
内の toComplex
Matrix.toComplex()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |