|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<M>
org.mklab.nfc.matrix.AbstractFundamentalMatrix<M>
org.mklab.nfc.matrix.AbstractMatrix<DoubleMatrix>
org.mklab.nfc.matrix.DoubleMatrix
public class DoubleMatrix
倍精度(double)型の値を成分とする行列を表すクラスです。
| コンストラクタの概要 | |
|---|---|
DoubleMatrix()
0*0の DoubleMatrixを生成します。 |
|
DoubleMatrix(double[] elements)
elementsで与えられた成分を持つ行ベクトルを生成します。 |
|
DoubleMatrix(double[][] elements)
与えられた成分をもつ DoubleMatrixを生成します。 |
|
DoubleMatrix(DoubleNumber[] elements)
elementsで与えられた成分を持つ行ベクトルを生成します。 |
|
DoubleMatrix(DoubleNumber[][] elements)
与えられた成分をもつ DoubleMatrixを生成します。 |
|
DoubleMatrix(int rowSize,
int columnSize)
rowSize * columnSize のDoubleMatrix零行列を生成します。 |
|
DoubleMatrix(int rowSize,
int columnSize,
double[][] elements)
与えられた成分をもつ rowSize * columnSize の DoubleMatrixを生成します。 |
|
DoubleMatrix(int rowSize,
int columnSize,
DoubleNumber[][] elements)
与えられた成分をもつ rowSize * columnSize の DoubleMatrixを生成します。 |
|
DoubleMatrix(IntMatrix matrix)
新しく生成された DoubleMatrixオブジェクトを初期化します。 |
|
| メソッドの概要 | |
|---|---|
DoubleMatrix |
absElementWise()
各成分の絶対値を成分に持つ行列を返します。 |
DoubleMatrix |
acosElementWise()
成分毎の逆余弦関数の結果からなる行列を返します。 |
DoubleMatrix |
acoshElementWise()
成分毎の逆双曲線余弦関数の結果からなる行列を返します。 |
DoubleMatrix |
add(DoubleMatrix value)
行列 valueとの和行列を生成します。 |
DoubleMatrix |
addElementWise(double value)
成分毎に実数を加えます。 |
DoubleMatrix |
addElementWise(int value)
成分毎に整数を加えます。 |
Matrix |
addElementWise(Scalar<?> value)
成分毎にスカラーを加えます。 |
DoubleMatrix |
appendDown(DoubleMatrix value)
下側に実数行列 valueを連結した行列を生成します。 |
DoubleMatrix |
appendRight(DoubleMatrix value)
右側に valueを連結した行列を生成します。 |
DoubleMatrix |
argumentElementWise()
各成分の偏角を成分に持つ行列を返します。 |
DoubleMatrix |
asinElementWise()
成分毎の逆正弦関数の結果からなる行列を返します。 |
DoubleMatrix |
asinhElementWise()
成分毎の逆双曲線正弦関数の結果からなる行列を返します。 |
DoubleMatrix |
atan2ElementWise(DoubleMatrix matrix)
各成分の正接(2)関数の結果を成分とする行列を生成します。 |
NumericalMatrixOperator<?> |
atan2ElementWise(Matrix order)
各成分の逆正接(2)関数の結果を成分とする行列を生成します。 |
NumericalMatrixOperator<?> |
atan2ElementWise(NumericalScalar<?> value)
各成分の逆正接(2)関数の結果を成分とする行列を生成します。 |
DoubleMatrix |
atanElementWise()
成分毎の逆正接関数の結果からなる行列を返します。 |
DoubleMatrix |
atanhElementWise()
成分毎の逆双曲線正接関数の結果からなる行列を返します。 |
BalancedDecomposition<DoubleMatrix> |
balancedDecompose()
非対称行列のバランス化分解を返します。 |
DoubleMatrix |
ceilElementWise()
大きい整数に丸めます。 |
DoubleMatrix |
choleskyDecompose()
対称行列のコレスキー分解を返します。 |
DoubleMatrix |
clone()
Object#clone() |
BooleanMatrix |
compareElementWise(String operator,
double value)
各成分と valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
DoubleMatrix opponent)
opponentと成分毎にoperatorで指定された演算子で比較し, BooleanMatrixで返します。 |
BooleanMatrix |
compareElementWise(String operator,
int value)
各成分と 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<?> value)
各成分と valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。 |
DoubleNumber |
conditionNumber()
条件数(2-ノルム)を返します。 |
DoubleMatrix |
conjugate()
共役複素行列を返します。 |
DoubleMatrix |
conjugateTranspose()
各成分の共役複素数の転置行列を返します。 |
void |
copy(DoubleMatrix source)
実数行列 sourceの各成分をコピーします。 |
void |
copy(IntMatrix source)
整数行列 sourceの各成分をコピーします。 |
void |
copy(Matrix source)
sourceの成分をコピーします。 |
DoubleMatrix |
cosElementWise()
成分毎の余弦関数の結果からなる行列を返します。 |
DoubleMatrix |
coshElementWise()
成分毎の双曲線余弦関数の結果からなる行列を返します。 |
DoubleMatrix |
covariance(DoubleMatrix opponent)
yとの共分散行列を返します。 |
DoubleComplexMatrix |
createComplexMatrix(NumericalMatrixOperator<?> realPart,
NumericalMatrixOperator<?> imagPart)
複素行列を返します。 |
DoubleMatrix |
createNormalRandom()
同サイズの平均0、分散1の正規分布のランダムな成分を持つ行列を生成します。 |
DoubleMatrix |
createNormalRandom(int rowSize,
int columnSize)
平均0、分散1の正規分布のランダムな成分を持つ rowSize*columnSize
の行列を生成します。 |
DoubleMatrix |
createNormalRandom(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber*columnNumber倍の
平均0、
分散1の正規分布のランダムな成分を持つrowSize*columnSizeの行列を生成します。 |
DoubleMatrix |
createNormalRandom(int rowSize,
int columnSize,
long seed)
平均0、分散1の正規分布のランダムな成分を持つ rowSize*columnSize
の行列を生成します。 |
DoubleMatrix |
createOnes(int rowSize,
int columnSize)
rowSize*columnSizeの全成分が1である行列を生成します。 |
DoubleMatrix |
createUniformRandom()
同サイズの0〜1の範囲の一様分布のランダムな成分を持つ行列を生成します。 |
DoubleMatrix |
createUniformRandom(int rowSize,
int columnSize)
0〜1の範囲の一様分布のランダムな成分を持つ rowSize*columnSizeの行列を生成します 。 |
DoubleMatrix |
createUniformRandom(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber*columnNumber倍の
0〜1の範囲の一様分布のランダムな成分を持つ
rowSize*columnSizeの行列を生成します。 |
DoubleMatrix |
createUniformRandom(int rowSize,
int columnSize,
long seed)
0〜1の範囲の一様分布のランダムな成分を持つ rowSize*columnSizeの行列を生成します 。 |
DoubleMatrix |
createUnit(int rowSize,
int columnSize)
rowSize*columnSizeの単位行列を生成します。 |
DoubleMatrix |
createZero(int rowSize,
int columnSize)
rowSize*columnSizeの零行列を生成します。 |
DoubleMatrix |
cumulativeProduct()
各要の累積積からなる行列を返します。 |
DoubleMatrix |
cumulativeProductColumnWise()
列毎の累積積行列を返します。 |
DoubleMatrix |
cumulativeProductRowWise()
行毎の累積積行列を返します。 |
DoubleMatrix |
cumulativeSum()
各要の累積和からなる行列を返します。 |
DoubleMatrix |
cumulativeSumColumnWise()
列毎の累積和行列を返します。 |
DoubleMatrix |
cumulativeSumRowWise()
行毎の累積和行列を返します。 |
DoubleNumber |
determinant()
行列式を返します。 |
double |
determinant(NumericalScalar<?> tolerance,
boolean stopIfSingular)
行列式を返します。 |
static DoubleMatrix |
diagonal(double[] diagonalElements)
対角行列を生成します。 |
DoubleMatrix |
diagonalToVector()
対角成分をからなる列ベクトルを生成します。 |
DoubleMatrix |
divide(double value)
各成分と実数valueの商( this/value)を返します。 |
DoubleMatrix |
divide(DoubleMatrix value)
行列 valueの逆行列との積(this*value -1 )を生成します。 |
DoubleMatrix |
divide(int value)
各成分と整数valueの商( this/value)を返します。 |
Matrix |
divide(Scalar<?> value)
各成分とスカラーの商からなる行列を返します。 |
DoubleMatrix |
divideElementWise(DoubleMatrix value)
自身と valueの成分毎の商を成分とする行列を生成します。 |
EigenSolution<DoubleComplexMatrix> |
eigenDecompose()
固有値を対角成分とする対角行列D、固有値に対応する固有ベクトルを横方向に並べた行列Xを返します。 |
EigenSolution<NumericalMatrix<?>> |
eigenDecompose(DoubleMatrix b)
一般化固有値を対角成分とする対角行列 D と対応する一般化固有ベクトルを列とする行列 X を成分とする配列を返します。 |
EigenSolution<NumericalMatrix<?>> |
eigenDecompose(NumericalMatrixOperator<?> b)
一般化固有値を対角成分とする対角行列 D と対応する一般化固有ベクトルを列とする行列 X を返します。 |
DoubleComplexMatrix |
eigenValue()
固有値を成分とする列ベクトルを返します。 |
DoubleComplexMatrix |
eigenValue(NumericalMatrixOperator b)
一般化固有値からなる列ベクトルを返します。 |
DoubleComplexMatrix |
eigenValueReal(DoubleMatrix b)
一般化固有値を対角成分とする対角行列 D と対応する一般化固有ベクトルを列とする行列 X を成分とする配列を返します。 |
DoubleComplexMatrix |
eigenVector()
(右)固有ベクトルを列とする行列を返します。 |
DoubleComplexMatrix |
eigenVector(DoubleMatrix b)
一般化固有ベクトルを返します。 |
NumericalMatrix<DoubleComplexNumber> |
eigenVector(NumericalMatrixOperator b)
一般化固有ベクトルを返します。 |
boolean |
equals(DoubleMatrix opponent,
double tolerance)
許容誤差内で行列 opponentと等しいか判定します。 |
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行を入れ替えます。 |
DoubleMatrix |
exp()
指数関数行列を返します。 |
DoubleMatrix |
exp(double tolerance)
指数関数行列を返します。 |
DoubleMatrix |
exp(NumericalScalar<?> tolerance)
指数関数行列を返します。 |
DoubleMatrix |
expElementWise()
成分毎の指数関数の結果からなる行列を返します。 |
DoubleComplexMatrix |
fft()
2 のべき乗の長さのベクトルについて、基底が 2 の 高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
fft(int dataCount)
dataSize点まで基底が 2 の高速フーリエ変換をします。 |
DoubleComplexMatrix |
fftColumnWise()
列毎に基底が 2 の高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
fftColumnWise(int dataCount)
列毎に dataSize点まで、基底が 2 の高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
fftRowWise()
行毎に基底が 2 の高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
fftRowWise(int dataCount)
行毎に dataSize点まで,基底が 2 の高速フーリエ変換を計算します。 |
DoubleMatrix |
fixElementWise()
ゼロ方向の整数に丸めます。 |
DoubleMatrix |
floorElementWise()
小さい整数に丸めます。 |
DoubleNumber |
frobNorm()
フロベニウスノルムを返します。 |
DoubleMatrix |
frobNormColumnWise()
列毎のフロベニウスノルムを成分とする行ベクトルを返します。 |
DoubleMatrix |
frobNormRowWise()
行毎のフロベニウスノルムを成分とする列ベクトルを返します。 |
static String |
getDefaultElementFormat()
成分のデフォルト出力フォーマットを返します。 |
double |
getDoubleElement(int index)
成分を行毎に数え、指定した位置の成分を返します。 |
double |
getDoubleElement(int row,
int column)
row行column列の成分を返します。 |
DoubleNumber |
getElement(int index)
成分を行毎に数え indexで指定した成分を返します。 |
DoubleNumber |
getElement(int row,
int column)
row行column列の成分を返します。 |
protected String |
getGridClassName()
出力するクラスの名前を返します。 |
DoubleMatrix |
getImaginaryPart()
虚部行列を返します。 |
DoubleMatrix |
getRealPart()
実部行列を返します。 |
DoubleMatrix |
getSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax)
部分行列 this(rowMinimum:rowMaximum,columnMinimum:columnMaximum)を生成します。 |
DoubleMatrix |
getSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex)
rowMinimum行からrowMaximum行目で、columnIndex
で指定された列を成分とする部分行列を生成します。 |
DoubleMatrix |
getSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax)
columnMinimum列からcolumnMaximum列まで、
rowIndexで指定された行を成分とする部分行列を生成します。 |
DoubleMatrix |
getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
rowIndexで指定された行で、columnIndex
で指定された列を成分とする部分行列を生成します。 |
DoubleMatrix |
getSubVector(IntMatrix index)
行毎に数え indexで指定した成分を成分とする部分行列を生成します。 |
int |
hashCode()
|
HessenbergDecomposition<DoubleMatrix> |
hessenbergDecompose()
ヘッセンベルク分解を返します。 |
DoubleComplexMatrix |
ifft()
2 のべき乗の長さのベクトルについて、基底が 2 の 逆高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
ifft(int dataCount)
dataSize点まで基底が2の逆高速フーリエ変換をします。 |
DoubleComplexMatrix |
ifftColumnWise()
列毎に基底が 2 の逆高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
ifftColumnWise(int dataCount)
列毎に dataSize点まで、基底が 2 の逆高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
ifftRowWise()
行毎に基底が 2 の逆高速フーリエ変換を計算します。 |
DoubleComplexMatrix |
ifftRowWise(int dataCount)
行毎に dataSize点まで,基底が 2 の逆高速フーリエ変換を計算します。 |
DoubleNumber |
infNorm()
無限大ノルムを返します。 |
DoubleMatrix |
inverse()
逆行列( this -1 )を返します。 |
DoubleMatrix |
inverse(double tolerance,
boolean stopIfSingular)
逆行列( this -1 )を返します。 |
DoubleMatrix |
inverse(NumericalScalar<?> tolerance,
boolean stopIfSingular)
逆行列( this -1 )を返します。 |
DoubleMatrix |
inverseElementWise()
成分毎の逆数からなる行列を返します。 |
boolean |
isComplex()
複素成分をもつか判定します。 |
BooleanMatrix |
isFiniteElementWise()
各成分の有限性の真偽を成分にもつ行列を返します。 |
boolean |
isFullRank()
フルランクであるか判定します。 |
boolean |
isFullRank(double tolerance)
フルランクであるか判定します。 |
boolean |
isFullRank(NumericalScalar<?> tolerance)
フルランクであるか判定します。 |
BooleanMatrix |
isInfiniteElementWise()
各成分の無限性の真偽を成分にもつ行列を返します。 |
BooleanMatrix |
isNanElementWise()
各成分の非数性の真偽を成分にもつ行列を返します。 |
boolean |
isReal()
実成分のみをもつか(複素成分をもたないか)判定します。 |
boolean |
isTransformableFrom(Matrix value)
引数で与えられた型から、この型へ変換可能か判定します。 |
boolean |
isUnit(double tolerance)
単位行列であるか判定します。 |
boolean |
isUnit(NumericalScalar<?> tolerance)
単位行列であるか判定します。 |
boolean |
isZero(double tolerance)
零行列であるか判定します。 |
boolean |
isZero(NumericalScalar<?> tolerance)
零行列であるか判定します。 |
DoubleMatrix |
kernel()
カーネル(零空間)を張るベクトルからなる行列を返します。 |
DoubleMatrix |
kernel(double tolerance)
カーネル(零空間)を張るベクトルからなる行列を返します。 |
DoubleMatrix |
kernel(NumericalScalar<?> tolerance)
カーネル(零空間)を張るベクトルからなる行列を返します。 |
DoubleMatrix |
leftDivide(DoubleMatrix value)
自身の逆行列と行列 valueの積(this -1 *value)を生成します。 |
DoubleMatrix |
leftDivideElementWise(DoubleMatrix value)
自身と valueの成分毎の左からの商を成分とする行列を生成します。 |
DoubleComplexMatrix |
log()
対数行列を返します。 |
DoubleMatrix |
log10ElementWise()
成分毎の常用対数関数の結果からなる行列を返します。 |
DoubleMatrix |
logElementWise()
成分毎の対数関数の結果からなる行列を返します。 |
LUDecomposition<DoubleMatrix> |
luDecompose()
LU分解を返します。 |
LUDecomposition<DoubleMatrix> |
luDecompose(double tolerance)
LU分解を返します。 |
LUDecomposition<DoubleMatrix> |
luDecompose(NumericalScalar<?> tolerance)
LU分解を返します。 |
LUDecomposition<DoubleMatrix> |
luDecomposeWithPermutation()
並べ替え付きLU分解を返します。 |
LUDecomposition<DoubleMatrix> |
luDecomposeWithPermutation(double tolerance)
並べ替え付きLU分解を返します。 |
LUDecomposition<DoubleMatrix> |
luDecomposeWithPermutation(NumericalScalar<?> tolerance)
並べ替え付きLU分解を返します。 |
DoubleNumber |
max()
最大成分を返します。 |
DoubleMatrix |
maxColumnWise()
列毎の最大値を成分とする行ベクトルを返します。 |
DoubleMatrix |
maxElementWise(DoubleMatrix opponent)
各成分の大きい方の値を成分とする行列を生成します。 |
Matrix |
maxElementWise(Matrix opponent)
opponentと成分毎に比較し、大きいほうを成分にもつ行列を返します。 |
ElementHolder<DoubleNumber> |
maximum()
最大成分とその指数を返します。 |
IndexedMatrix<DoubleMatrix> |
maximumColumnWise()
列毎の最大成分とその指数を返します。 |
IndexedMatrix<DoubleMatrix> |
maximumRowWise()
行毎の最大成分とその指数を返します。 |
DoubleMatrix |
maxRowWise()
行毎の最大値を成分とする列ベクトルを返します。 |
DoubleNumber |
maxSingularValue()
最大特異値を返します。 |
DoubleNumber |
mean()
全ての成分の平均値を返します。 |
DoubleMatrix |
meanColumnWise()
各成分列毎の平均値行ベクトルを返します。 |
DoubleMatrix |
meanRowWise()
各成分行毎の平均値列ベクトルを返します。 |
DoubleNumber |
median()
全ての成分の中間値を返します。 |
DoubleMatrix |
medianColumnWise()
行列なら、列毎のメジアンを成分とする行ベクトルを返します。 |
DoubleMatrix |
medianRowWise()
行列なら、行毎のメジアンを成分とする列ベクトルを返します。 |
DoubleNumber |
min()
最小成分を返します。 |
DoubleMatrix |
minColumnWise()
列毎の最小値を成分とする行ベクトルを返します。 |
DoubleMatrix |
minElementWise(DoubleMatrix opponent)
各成分の小さい方の値を成分とする行列を生成します。 |
Matrix |
minElementWise(Matrix opponent)
opponentと成分毎に比較し、小さいほうを成分にもつ行列を返します。 |
ElementHolder<DoubleNumber> |
minimum()
最小成分と指数を返します。 |
IndexedMatrix<DoubleMatrix> |
minimumColumnWise()
列毎の最小成分とその指数を返します。 |
IndexedMatrix<DoubleMatrix> |
minimumRowWise()
行毎の最小成分とその指数を返します。 |
DoubleMatrix |
minRowWise()
行毎の最小値を成分とする列ベクトルを返します。 |
DoubleNumber |
minSingularValue()
最小特異値を返します。 |
DoubleMatrix |
modulusElementWise(double value)
各成分の符合付剰余関数の結果を成分とする行列を生成します。 |
DoubleMatrix |
modulusElementWise(DoubleMatrix matrix)
各成分の符号付剰余関数の結果を成分とする行列を生成します。 |
DoubleMatrix |
modulusElementWise(Matrix order)
各成分の符合付剰余を成分とする行列を生成します。 |
DoubleMatrix |
modulusElementWise(NumericalScalar<?> value)
各成分の符合付剰余を成分とする行列を生成します。 |
DoubleMatrix |
multiply(double value)
各成分と実数 valueの積を(this*value)を返します。 |
DoubleMatrix |
multiply(DoubleMatrix value)
行列 valueとの積行列を生成します。 |
DoubleMatrix |
multiply(int value)
各成分と整数 valueの積を(this*value)を返します。 |
Matrix |
multiply(Scalar<?> value)
各成分とスカラー valueの積を返します。 |
DoubleMatrix |
multiplyElementWise(DoubleMatrix value)
自身と valueの成分毎の積を成分とする行列を生成します。 |
DoubleNumber |
norm(NormType type)
norm( NormType.FROBENIUS)でフロベニウスノルム、 norm(
NormType.INFINITY)で無限大ノルム、 norm(
NormType.ONE)で1-ノルムを、 norm(NormType.TWO)で最大特異値を返します。 |
static DoubleMatrix |
normalRandom(Grid matrix)
0以上1より小さい正規分布のランダムな成分をもつ matrixと同じ大きさの実行列を生成します。 |
static DoubleMatrix |
normalRandom(int size)
0以上1より小さい正規分布のランダムな成分をもつ size*sizeの実行列を生成します。 |
static DoubleMatrix |
normalRandom(int rowSize,
int columnSize)
0以上1より小さい正規分布のランダムな成分をもつ rowSize*columnSize の実行列を生成します。 |
static DoubleMatrix |
normalRandom(int rowSize,
int columnSize,
long seed)
正規乱数の種を seedで指定し, その種によって生成される、0以上1未満の正規分布の乱数成分を もつrowSize*columnSizeの実行列を得る。 |
static DoubleMatrix |
ones(Grid matrix)
行列 matrixと同サイズの全成分が1である行列を生成します。 |
static DoubleMatrix |
ones(int size)
size*sizeの全成分が1である行列を生成します。 |
static DoubleMatrix |
ones(int rowSize,
int columnSize)
rowSize*columnSizeの全成分が1である行列を生成します。 |
static DoubleMatrix |
ones(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber * columnNumber倍の全成分が1である行列を生成します。 |
DoubleMatrix |
powerElementWise(double order)
成分毎に累乗するした値を成分とする行列を返します。 |
static DoubleMatrix |
powerElementWise(double scalar,
DoubleMatrix matrix)
実数の累乗(行列成分毎)を成分とする行列を生成します。 |
static DoubleMatrix |
powerElementWise(double scalar,
IntMatrix matrix)
1個の実数について、行列の各成分の累乗を成分とする行列を生成します。 |
DoubleMatrix |
powerElementWise(DoubleMatrix value)
各成分の累乗した値を成分とする行列を生成します。 |
static DoubleMatrix |
powerElementWise(double scalar,
Matrix matrix)
実数の累乗(行列成分毎)を成分とする行列を生成します。 |
DoubleMatrix |
powerElementWise(int order)
成分毎に累乗します。 |
static DoubleMatrix |
powerElementWise(int scalar,
DoubleMatrix matrix)
整数の累乗(行列成分毎)を成分とする行列を生成します。 |
DoubleMatrix |
powerElementWise(IntMatrix value)
成分毎に累乗します。 |
static DoubleMatrix |
powerElementWise(int scalar,
Matrix matrix)
整数の累乗(行列成分毎)を成分とする行列を生成します。 |
NumericalMatrixOperator<?> |
powerElementWise(Matrix order)
成分毎に累乗します。 |
NumericalMatrix<?> |
powerElementWise(NumericalMatrix<?> value)
各成分の累乗した値を成分とする行列を生成します。 |
NumericalMatrixOperator<?> |
powerElementWise(NumericalScalar<?> order)
成分毎に累乗するした値を成分とする行列を返します。 |
void |
printElements(Writer output)
ライターに成分を出力します。 |
void |
printElements(Writer output,
int maxColumnSize)
ライターに成分を出力します。 |
DoubleNumber |
product()
全ての成分積を返します。 |
DoubleMatrix |
productColumnWise()
列毎に掛けた行ベクトルを返します。 |
DoubleMatrix |
productRowWise()
行毎に掛けた列ベクトルを返します。 |
DoubleMatrix |
pseudoInverse()
擬似逆行列を返します。 |
DoubleMatrix |
pseudoInverse(double tolerance)
擬似逆行列を返します。 |
DoubleMatrix |
pseudoInverse(NumericalScalar<?> tolerance)
擬似逆行列を返します。 |
QRDecomposition<DoubleMatrix> |
qrDecompose()
QR分解を返します。 |
QRDecomposition<DoubleMatrix> |
qrDecomposeWithPermutation()
推奨されていません。 |
QZDecomposition<NumericalMatrixOperator<?>> |
qzDecompose(DoubleMatrix b)
QZ分解を返します。 |
QZDecomposition<NumericalMatrixOperator<?>> |
qzDecompose(NumericalMatrixOperator<?> b)
QZ分解を返します。 |
int |
rank()
ランク(階数)(正の特異値の数)を返します。 |
int |
rank(double tolerance)
ランク(階数)( toleranceより大きい特異値の数)を返します。 |
int |
rank(NumericalScalar<?> tolerance)
ランク(階数)( toleranceより大きい特異値の数)を返します。 |
static DoubleMatrix |
readMatFormat(int rowSize,
int columnSize,
StreamTokenizer stringTokennizer)
MatxMatrix.readMatFormat(String)用の中間メソッドです。 |
static DoubleMatrix |
readMxFormat(InputStream input,
MxDataHead head)
MatxMatrix.readMxFormat(InputStream) から呼ばれる中間メソッドです。 |
DoubleMatrix |
remainderElementWise(double value)
各成分の剰余関数の結果を成分とする行列を生成します。 |
DoubleMatrix |
remainderElementWise(DoubleMatrix matrix)
各成分の剰余関数の結果を成分とする行列を生成します。 |
DoubleMatrix |
remainderElementWise(Matrix order)
各成分の剰余を成分とする行列を生成します。 |
DoubleMatrix |
remainderElementWise(NumericalScalar<?> value)
各成分の剰余を成分とする行列を生成します。 |
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で指定された行を削除します。 |
DoubleMatrix |
reshape(int newRowSize,
int newColumnSize)
サイズを newRowSize*newColumnSizeに変更した行列を生成します。 |
DoubleMatrix |
resize(int newRowSize,
int newColumnSize)
newRowSize*newColumnSizeにサイズ変更します。 |
DoubleMatrix |
roundElementWise()
最も近い整数に丸めます。 |
DoubleMatrix |
roundToZeroElementWise(double tolerance)
絶対値が小さい成分を0に丸めます。 |
DoubleMatrix |
roundToZeroElementWise(NumericalScalar<?> tolerance)
絶対値が小さい成分を0に丸めます。 |
SchurDecomposition<DoubleMatrix> |
schurDecompose()
Schur分解を返します。 |
static DoubleMatrix |
series(double from,
double to)
fromからtoまでの連続する実数を成分に持つ行ベクトルを生成します。 |
static DoubleMatrix |
series(double from,
double to,
double by)
fromからtoまでのby飛びの実数を成分に持つ行ベクトルを生成します。 |
static void |
setDefaultElementFormat(String format)
成分のデフォルト出力フォーマットを設定します。 |
void |
setElement(int index,
double value)
成分を行毎に数え indexで指定した位置にvalueを代入します。 |
void |
setElement(int index,
int value)
成分を行毎に数え indexで指定した位置にvalueを代入します。 |
void |
setElement(int row,
int column,
double value)
指定した成分に value |
void |
setElement(int row,
int column,
int value)
指定した成分に valueを代入します。 |
void |
setElement(int row,
int column,
Scalar<?> value)
指定した成分に valueを代入します。 |
void |
setElement(int index,
Scalar<?> value)
成分を行毎に数え indexで指定した位置に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,
DoubleMatrix source)
指定した成分に行列 sourceを代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
int columnMin,
int columnMax,
Matrix source)
指定した成分に行列 sourceを代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
DoubleMatrix source)
rowMin列からrowMax列目の成分のcolumnIndex で指定された行に行列valueの成分を代入します。 |
void |
setSubMatrix(int rowMin,
int rowMax,
IntMatrix columnIndex,
Matrix source)
rowMinimum列目からrowMaximum列目の成分のcolumnIndex
で指定された行の成分に行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
DoubleMatrix source)
rowIndexで指定した行のcolumnMin列からcolumnMax 列までの行列valueを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
int columnMin,
int columnMax,
Matrix source)
rowIndexで指定した行のcolumnMinimum列からcolumnMaximum
列までの行列sourceを代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
DoubleMatrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列value code>を代入します。 |
void |
setSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex,
Matrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列sourceを代入します。 |
void |
setSubVector(int min,
int max,
DoubleMatrix source)
成分を行毎に数え、 minからmaxまでにsourceの成分を代入します。 |
void |
setSubVector(int min,
int max,
Matrix source)
成分を行毎に数え、 minimumからmaximumまでにsourceの成分を代入します。 |
void |
setSubVector(IntMatrix index,
DoubleMatrix source)
indexで指定した各成分に行列valueの成分を代入します。 |
void |
setSubVector(IntMatrix index,
Matrix source)
indexで指定した各成分に行列sourceの成分を代入します。 |
DoubleMatrix |
signumElementWise()
各成分の符合(-1,0,1)を成分に持つ行列を返します。 |
DoubleMatrix |
sinElementWise()
成分毎の正弦関数の結果からなる行列を返します。 |
DoubleMatrix |
singularValue()
特異値を成分とする列ベクトルを返します。 |
SingularValueDecomposition<DoubleMatrix> |
singularValueDecompose()
特異値分解で得られる各行列を返します。 |
DoubleMatrix |
sinhElementWise()
成分毎の双曲線正弦関数の結果からなる行列を返します。 |
IndexedMatrix<DoubleMatrix> |
sort()
全ての成分を昇順に並び替えた行列と元の位置を示す指数( IntMatrix)を返します。 |
IndexedMatrix<DoubleMatrix> |
sortColumnWise()
列毎に昇順に並び替えた行列と元の位置を示す指数( IntMatrix)を返します。 |
IndexedMatrix<DoubleMatrix> |
sortRowWise()
行毎に昇順に並び替えた行列と元の位置を示す指数( IntMatrix)を返します。 |
DoubleComplexMatrix |
sqrt()
平方根行列を返します。 |
DoubleMatrix |
sqrtElementWise()
成分毎の平方根の結果からなる行列を返します。 |
DoubleNumber |
std()
標準偏差を返します。 |
DoubleMatrix |
stdColumnWise()
各成分列毎の標準偏差行ベクトルを返します。 |
DoubleMatrix |
stdRowWise()
各成分行毎の標準偏差列ベクトルを返します。 |
DoubleMatrix |
subtract(DoubleMatrix value)
行列 valueとの差行列を生成します。 |
DoubleMatrix |
subtractElementWise(double value)
成分毎に実数を引きます。 |
DoubleMatrix |
subtractElementWise(int value)
成分毎に実数を引きます。 |
Matrix |
subtractElementWise(Scalar<?> value)
成分毎にスカラーを引きます。 |
DoubleNumber |
sum()
全ての成分の合計を返します。 |
DoubleMatrix |
sumColumnWise()
列毎に加えた行ベクトルを返します。 |
DoubleMatrix |
sumRowWise()
行毎に加えた列ベクトルを返します。 |
DoubleMatrix |
tanElementWise()
成分毎の正接関数の結果からなる行列を返します。 |
DoubleMatrix |
tanhElementWise()
成分毎の双曲線正接関数の結果からなる行列を返します。 |
DoubleComplexMatrix |
toComplex()
複素成分行列へ変換します。 |
String |
toMmString()
MM形式の文字列を生成します。 |
String |
toMmString(String format)
MM形式の文字列を生成します。 |
DoubleNumber |
trace()
全対角成分の和を返します。 |
DoubleMatrix |
transformFrom(Matrix value)
引数で与えられた型からこの型へ変換します。 |
DoubleMatrix |
transpose()
転置行列( this T )を生成します。 |
DoubleMatrix |
unaryMinus()
符号を反転した値(-this)を返します。 |
static DoubleMatrix |
uniformRandom(Grid matrix)
0以上1より小さい一様分布のランダムな成分を持つ matrixと同じ大きさの実行列を生成します。 |
static DoubleMatrix |
uniformRandom(int size)
0以上1より小さい一様分布のランダムな成分を持つ size*sizeの実行列を生成します。 |
static DoubleMatrix |
uniformRandom(int rowSize,
int columnSize)
0以上1より小さい一様分布のランダムな成分を持つ rowSize*columnSize の実行列を生成します。 |
static DoubleMatrix |
uniformRandom(int rowSize,
int columnSize,
long seed)
一様乱数の種をseedで指定し, その種によって生成される、0以上1未満の一様分布の 乱数成分をもつ rowSize*columnSizeの 実行列を生成します。 |
static DoubleMatrix |
unit(int size)
size*sizeの単位行列を生成します。 |
static DoubleMatrix |
unit(int rowSize,
int columnSize)
rowSize*columnSizeの実単位行列を生成します。 |
static DoubleMatrix |
unit(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber*columnNumber 倍の実単位行列を生成します。 |
static DoubleMatrix |
unit(Matrix matrix)
行列 matrixと同サイズの実単位行列を生成します。 |
DoubleNumber |
variance()
全ての成分の分散を返します。 |
DoubleMatrix |
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 DoubleMatrix |
zero(Grid matrix)
行列 matrixと同サイズの零行列を生成します。 |
static DoubleMatrix |
zero(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber * columnNumber倍の零行列を生成します。 |
| クラス 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, roundToZeroElementWise, shiftLeft, shiftUp, subtract, transformTo, transformToSameClass |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース org.mklab.nfc.matrix.Matrix から継承されたメソッド |
|---|
add, covariance, createOnes, createOnes, createOnes, createUnit, createUnit, createUnit, createZero, createZero, createZero, divide, isTransformableTo, isUnit, leftDivide, leftDivide, leftDivide, leftDivide, multiply, power, shiftLeft, shiftUp, subtract, transformTo |
| インタフェース 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, isZero, length, print, print, print, removeColumnVector, removeRowVector, setElementAlignment, setElementFormat |
| インタフェース org.mklab.nfc.matrix.MatrixElementWiseOperator から継承されたメソッド |
|---|
divideElementWise, leftDivideElementWise, multiplyElementWise, roundToZeroElementWise |
| コンストラクタの詳細 |
|---|
public DoubleMatrix()
DoubleMatrixを生成します。
public DoubleMatrix(double[] elements)
elementsで与えられた成分を持つ行ベクトルを生成します。
elements - ベクトルの成分をもつ配列public DoubleMatrix(DoubleNumber[] elements)
elementsで与えられた成分を持つ行ベクトルを生成します。
elements - ベクトルの成分をもつ配列
public DoubleMatrix(int rowSize,
int columnSize)
rowSize * columnSize のDoubleMatrix零行列を生成します。
rowSize - 行の数columnSize - 列の数public DoubleMatrix(double[][] elements)
DoubleMatrixを生成します。
elements - 行列の成分public DoubleMatrix(DoubleNumber[][] elements)
DoubleMatrixを生成します。
elements - 行列の成分
public DoubleMatrix(int rowSize,
int columnSize,
double[][] elements)
rowSize * columnSize の DoubleMatrixを生成します。
rowSize - 行の数columnSize - 列の数elements - 行列の成分
public DoubleMatrix(int rowSize,
int columnSize,
DoubleNumber[][] elements)
rowSize * columnSize の DoubleMatrixを生成します。
rowSize - 行の数columnSize - 列の数elements - 行列の成分public DoubleMatrix(IntMatrix matrix)
DoubleMatrixオブジェクトを初期化します。
matrix - 整数行列| メソッドの詳細 |
|---|
public static void setDefaultElementFormat(String format)
format - 成分のデフォルト出力フォーマットpublic static String getDefaultElementFormat()
public DoubleMatrix clone()
AbstractGrid の記述:
Grid 内の cloneAbstractGrid<DoubleMatrix> 内の cloneAbstractGrid.clone()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(DoubleMatrix opponent,
double tolerance)
opponentと等しいか判定します。
opponent - 実行列tolerance - 許容誤差
opponentと等しければtrue、そうでなければfalsepublic int hashCode()
AbstractGrid<DoubleMatrix> 内の hashCodeAbstractGrid.hashCode()public boolean isTransformableFrom(Matrix value)
Matrix の記述:
Matrix 内の isTransformableFromAbstractMatrix<DoubleMatrix> 内の isTransformableFromvalue - 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)public DoubleMatrix transformFrom(Matrix value)
Matrix の記述:
Matrix 内の transformFromAbstractMatrix<DoubleMatrix> 内の transformFromvalue - 変換元
Matrix.transformFrom(org.mklab.nfc.matrix.Matrix)public DoubleMatrix add(DoubleMatrix value)
valueとの和行列を生成します。
value - 実数行列
valueとの和public DoubleMatrix subtract(DoubleMatrix value)
valueとの差行列を生成します。
value - 実数行列
valueとの差public DoubleMatrix 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 DoubleMatrix multiply(DoubleMatrix value)
valueとの積行列を生成します。
value - 実数行列
valueとの積public DoubleMatrix conjugate()
Matrix の記述:
Matrix 内の conjugateMatrix.conjugate()public DoubleMatrix transpose()
FundamentalMatrix の記述:this T )を生成します。
FundamentalMatrix 内の transposeFundamentalMatrix.transpose()public DoubleMatrix conjugateTranspose()
Matrix の記述:
Matrix 内の conjugateTransposeMatrix.conjugateTranspose()public DoubleNumber determinant()
MatrixElementOperator の記述:
MatrixElementOperator<DoubleNumber> 内の determinantMatrixElementOperator.determinant()
public double determinant(NumericalScalar<?> tolerance,
boolean stopIfSingular)
tolerance - 許容誤差stopIfSingular - trueならば、正則でない場合、処理を中止し、例外を投げます。
public DoubleMatrix inverse(double tolerance,
boolean stopIfSingular)
Matrix の記述:this -1 )を返します。
Matrix 内の inversetolerance - 許容誤差stopIfSingular - trueならば、正則でない場合、処理を中止し、例外を投げます。
Matrix.inverse(double, boolean)
public DoubleMatrix inverse(NumericalScalar<?> tolerance,
boolean stopIfSingular)
NumericalMatrixOperator の記述:this -1 )を返します。
NumericalMatrixOperator<DoubleNumber> 内の inversetolerance - 許容誤差stopIfSingular - trueならば、正則でない場合、処理を中止し、例外を投げます。
NumericalMatrixOperator.inverse(org.mklab.nfc.scalar.NumericalScalar, boolean)public DoubleMatrix inverseElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の inverseElementWiseMatrixElementWiseOperator.inverseElementWise()public DoubleMatrix 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(DoubleMatrix value)
valueの逆行列との積(this*value -1 )を生成します。
value - 実数行列
valueの逆行列との積public DoubleMatrix leftDivide(DoubleMatrix value)
valueの積(this -1 *value)を生成します。
value - 実数行列
valueの積public DoubleMatrix unaryMinus()
Matrix の記述:
Matrix 内の unaryMinusMatrix.unaryMinus()
public DoubleMatrix 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 void removeRowVectors(int rowMin,
int rowMax)
Grid の記述:rowMin行からrowMax行までを削除します。
Grid 内の removeRowVectorsrowMin - 行の始まりrowMax - 行の終わりGrid.removeRowVectors(int, int)public void removeRowVectors(IntMatrix rowIndex)
Grid の記述:rowIndexで指定された行を削除します。
Grid 内の removeRowVectorsrowIndex - 行指定ベクトルGrid.removeRowVectors(org.mklab.nfc.matrix.IntMatrix)
public void removeColumnVectors(int columnMin,
int columnMax)
Grid の記述:columnMin列からcolumnMax列までを削除します。
Grid 内の removeColumnVectorscolumnMin - 列の始まりcolumnMax - 列の終わりGrid.removeColumnVectors(int, int)public void removeColumnVectors(IntMatrix columnIndex)
Grid の記述:columnIndexで指定された列を削除します。
Grid 内の removeColumnVectorscolumnIndex - 列指定ベクトルGrid.removeColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public DoubleMatrix 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 DoubleMatrix 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 DoubleMatrix getSubMatrix(IntMatrix rowIndex,
IntMatrix columnIndex)
FundamentalMatrix の記述:rowIndexで指定された行で、columnIndex
で指定された列を成分とする部分行列を生成します。
FundamentalMatrix 内の getSubMatrixrowIndex - 行指定ベクトルcolumnIndex - 列指定ベクトル
FundamentalMatrix.getSubMatrix(org.mklab.nfc.matrix.IntMatrix, org.mklab.nfc.matrix.IntMatrix)public DoubleMatrix getSubVector(IntMatrix index)
FundamentalMatrix の記述:indexで指定した成分を成分とする部分行列を生成します。
FundamentalMatrix 内の getSubVectorindex - 行番号を含むベクトル
FundamentalMatrix.getSubVector(org.mklab.nfc.matrix.IntMatrix)
public double getDoubleElement(int row,
int column)
row行column列の成分を返します。
row - 行番号(1から始まる)column - 列番号(1から始まる)
public DoubleNumber getElement(int row,
int column)
MatrixElementOperator の記述:row行column列の成分を返します。
MatrixElementOperator<DoubleNumber> 内の getElementrow - 行番号(1から始まる)column - 列番号(1から始まる)
MatrixElementOperator.getElement(int, int)public double getDoubleElement(int index)
index - 成分の番号(1から始まる)
public DoubleNumber getElement(int index)
MatrixElementOperator の記述:indexで指定した成分を返します。
MatrixElementOperator<DoubleNumber> 内の getElementindex - 成分の番号(1から始まる)
MatrixElementOperator.getElement(int)
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,
DoubleMatrix source)
rowIndexで指定した行のcolumnMin列からcolumnMax 列までの行列valueを代入します。
rowIndex - 行番号を指定する指数(1から始まる)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,
DoubleMatrix source)
rowIndexで指定した行のcolumnIndexで指定した列に行列value code>を代入します。
- パラメータ:
rowIndex - 行番号を指定する指数(1から始まる)columnIndex - 列番号を指定する指数(1から始まる)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,
DoubleMatrix source)
rowMin列からrowMax列目の成分のcolumnIndex で指定された行に行列valueの成分を代入します。
rowMin - 行指定rowMax - 行指定columnIndex - 列指定ベクトルsource - 行列
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,
DoubleMatrix source)
sourceを代入します。
rowMin - 開始行番号(1から始まります)rowMax - 終了行番号(1から始まります)columnMin - 開始列番号(1から始まります)columnMax - 終了列番号(1から始まります)source - 代入する行列
public void setSubVector(int min,
int max,
DoubleMatrix 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,
DoubleMatrix source)
indexで指定した各成分に行列valueの成分を代入します。
index - 位置をもつベクトルsource - 設定する行列
public void setElement(int row,
int column,
int value)
MatrixElementOperator の記述:valueを代入します。
MatrixElementOperator<DoubleNumber> 内の setElementrow - 行番号(1から始まる)column - 列番号(1から始まる)value - 代入する値MatrixElementOperator.setElement(int, int, int)
public void setElement(int row,
int column,
double value)
MatrixElementOperator の記述:valueを代入します。
- 定義:
- インタフェース
MatrixElementOperator<DoubleNumber> 内の setElement
- パラメータ:
row - 行番号(1から始まる)column - 列番号(1から始まる)value - 代入する値- 関連項目:
MatrixElementOperator.setElement(int, int, double)
public void setElement(int row,
int column,
Scalar<?> value)
MatrixElementOperator の記述:valueを代入します。
MatrixElementOperator<DoubleNumber> 内の setElementrow - 行番号(1から始まる)column - 列番号(1から始まる)value - 代入する値MatrixElementOperator.setElement(int, int, org.mklab.nfc.scalar.Scalar)
public void setElement(int index,
int value)
MatrixElementOperator の記述:indexで指定した位置にvalueを代入します。
MatrixElementOperator<DoubleNumber> 内の setElementindex - 成分の番号(1から始まる)value - 代入する値MatrixElementOperator.setElement(int, int)
public void setElement(int index,
Scalar<?> value)
MatrixElementOperator の記述:indexで指定した位置にvalueを代入します。
MatrixElementOperator<DoubleNumber> 内の setElementindex - 成分の番号(1から始まる)value - 代入する値MatrixElementOperator.setElement(int, org.mklab.nfc.scalar.Scalar)
public void setElement(int index,
double value)
MatrixElementOperator の記述:indexで指定した位置にvalueを代入します。
MatrixElementOperator<DoubleNumber> 内の setElementindex - 成分の番号(1から始まる)value - 代入する値MatrixElementOperator.setElement(int, double)public DoubleMatrix appendRight(DoubleMatrix value)
valueを連結した行列を生成します。
value - 連結する行列
valueを連結行列したpublic DoubleMatrix appendDown(DoubleMatrix value)
valueを連結した行列を生成します。
value - 連結する実数行列
valueを連結した行列
public void writeMatFormat(String fileName)
throws IOException
fileName - ファイル名
IOException - ファイルに出力できない場合
public void writeMatFormat(OutputStream output)
throws IOException
output - 出力ストリーム
IOException - 入出力エラーが発生した場合
public static DoubleMatrix readMatFormat(int rowSize,
int columnSize,
StreamTokenizer stringTokennizer)
throws IOException
MatxMatrix.readMatFormat(String)用の中間メソッドです。
rowSize - 行の数columnSize - 列の数stringTokennizer - matファイルから読み込んだ StreamTokenizer
IOException - 入出力エラーが発生した場合
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 DoubleMatrix 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 static DoubleMatrix zero(Grid matrix)
matrixと同サイズの零行列を生成します。
matrix - 行列
valueと同サイズの零行列
public static DoubleMatrix zero(int rowNumber,
int columnNumber,
Grid block)
blockのrowNumber * columnNumber倍の零行列を生成します。
rowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber * columnNumber倍の零行列public static DoubleMatrix ones(int size)
size*sizeの全成分が1である行列を生成します。
size - サイズ指定
public static DoubleMatrix ones(int rowSize,
int columnSize)
rowSize*columnSizeの全成分が1である行列を生成します。
rowSize - 行番号の指定columnSize - 列番号の指定
rowSize*columnSizeの全成分が1である行列public static DoubleMatrix ones(Grid matrix)
matrixと同サイズの全成分が1である行列を生成します。
matrix - 行列
matrixと同サイズの全成分が1である行列
public static DoubleMatrix ones(int rowNumber,
int columnNumber,
Grid block)
blockのrowNumber * columnNumber倍の全成分が1である行列を生成します。
rowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber * columnNumber倍の全成分が1である行列public static DoubleMatrix uniformRandom(Grid matrix)
matrixと同じ大きさの実行列を生成します。
matrix - 行列
public static DoubleMatrix uniformRandom(int size)
size*sizeの実行列を生成します。
size - 次数
public static DoubleMatrix uniformRandom(int rowSize,
int columnSize)
rowSize*columnSize の実行列を生成します。
rowSize - 行の数columnSize - 列の数
public static DoubleMatrix uniformRandom(int rowSize,
int columnSize,
long seed)
rowSize*columnSizeの 実行列を生成します。
rowSize - 行の数columnSize - 列の数seed - 一様乱数の種
public static DoubleMatrix normalRandom(int size)
size*sizeの実行列を生成します。
size - 次数
public static DoubleMatrix normalRandom(int rowSize,
int columnSize)
rowSize*columnSize の実行列を生成します。
rowSize - 行の数columnSize - 列の数
public static DoubleMatrix normalRandom(Grid matrix)
matrixと同じ大きさの実行列を生成します。
matrix - 行列
public static DoubleMatrix normalRandom(int rowSize,
int columnSize,
long seed)
seedで指定し, その種によって生成される、0以上1未満の正規分布の乱数成分を もつrowSize*columnSizeの実行列を得る。
rowSize - 行の数columnSize - 列の数seed - 正規乱数の種
public static DoubleMatrix series(double from,
double to)
fromからtoまでの連続する実数を成分に持つ行ベクトルを生成します。
from - 始点to - 終点
public static DoubleMatrix series(double from,
double to,
double by)
fromからtoまでのby飛びの実数を成分に持つ行ベクトルを生成します。
from - 始点to - 終点by - 間隔
public static DoubleMatrix diagonal(double[] diagonalElements)
diagonalElements - 対角成分
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)protected String getGridClassName()
AbstractGrid の記述:
AbstractGrid<DoubleMatrix> 内の getGridClassNameAbstractGrid.getGridClassName()
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(DoubleMatrix source)
sourceの各成分をコピーします。
MatrixElementOperator<DoubleNumber> 内の copysource - コピー元の実数行列public void copy(IntMatrix source)
sourceの各成分をコピーします。
MatrixElementOperator<DoubleNumber> 内の copysource - コピー元の整数行列public DoubleMatrix diagonalToVector()
FundamentalMatrix の記述:
FundamentalMatrix 内の diagonalToVectorFundamentalMatrix.diagonalToVector()public DoubleMatrix vectorToDiagonal()
FundamentalMatrix の記述:
FundamentalMatrix 内の vectorToDiagonalFundamentalMatrix.vectorToDiagonal()
public DoubleMatrix reshape(int newRowSize,
int newColumnSize)
FundamentalMatrix の記述:newRowSize*newColumnSizeに変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize *
newColumnSize個の成分を持っていないと、エラーになる。
FundamentalMatrix 内の reshapenewRowSize - 行の数newColumnSize - 列の数
FundamentalMatrix.reshape(int, int)public boolean isZero(double tolerance)
Matrix の記述:
Matrix 内の isZerotolerance - 許容誤差
Matrix.isZero(double)public boolean isZero(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の isZerotolerance - 許容誤差
NumericalMatrixOperator.isZero(org.mklab.nfc.scalar.NumericalScalar)public boolean isUnit(double tolerance)
Matrix の記述:
Matrix 内の isUnittolerance - 許容誤差
Matrix.isUnit(double)public boolean isUnit(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の isUnittolerance - 許容誤差
NumericalMatrixOperator.isUnit(org.mklab.nfc.scalar.NumericalScalar)
public BooleanMatrix compareElementWise(String operator,
int value)
MatrixElementWiseOperator の記述:valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
MatrixElementWiseOperator 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")value - 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, int)
public BooleanMatrix compareElementWise(String operator,
double value)
MatrixElementWiseOperator の記述:valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
MatrixElementWiseOperator 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")value - 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, double)
public BooleanMatrix compareElementWise(String operator,
Scalar<?> value)
MatrixElementWiseOperator の記述:valueをoperatorで指定された演算子で比較し,
BooleanMatrixで返します。
MatrixElementWiseOperator 内の compareElementWiseoperator - 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")value - 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, org.mklab.nfc.scalar.Scalar)
public BooleanMatrix compareElementWise(String operator,
DoubleMatrix opponent)
opponentと成分毎にoperatorで指定された演算子で比較し, BooleanMatrixで返します。
operator - 比較演算子(". <", ". <=", ".>", ".>=", ".==",".!=")opponent - 比較対象
BooleanMatrix
public BooleanMatrix compareElementWise(String operator,
IntMatrix opponent)
opponentと成分毎にoperatorで指定された演算子で比較し, BooleanMatrixで返します。
operator - 比較演算子(". <", ". <=", ".>", ".>=", ".==",".!=")opponent - 比較対象
BooleanMatrix
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 DoubleMatrix multiplyElementWise(DoubleMatrix value)
valueの成分毎の積を成分とする行列を生成します。
value - 実数行列
public DoubleMatrix divideElementWise(DoubleMatrix value)
valueの成分毎の商を成分とする行列を生成します。
value - 実数行列
public DoubleMatrix leftDivideElementWise(DoubleMatrix value)
valueの成分毎の左からの商を成分とする行列を生成します。
value - 実数行列
public DoubleMatrix resize(int newRowSize,
int newColumnSize)
FundamentalMatrix の記述:newRowSize*newColumnSizeにサイズ変更します。
FundamentalMatrix.reshape(int, int)とは異なり、成分位置の変更はせず, 自身より大きなサイズに変更する時は、0で埋められ、
自身より小さなサイズに変更する時は余分な成分は切り取られます。
FundamentalMatrix 内の resizenewRowSize - 指定行の数newColumnSize - 指定列の数
FundamentalMatrix.resize(int, int)public DoubleMatrix powerElementWise(int order)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の powerElementWiseorder - 累乗の指数
MatrixElementWiseOperator.powerElementWise(int)public DoubleMatrix powerElementWise(IntMatrix value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の powerElementWisevalue - 累乗の指数を成分とする行列
MatrixElementWiseOperator.powerElementWise(org.mklab.nfc.matrix.IntMatrix)
public static DoubleMatrix powerElementWise(int scalar,
Matrix matrix)
scalar - 累乗の対象matrix - 累乗の指数を成分とする行列
public static DoubleMatrix powerElementWise(double scalar,
Matrix matrix)
scalar - 実数matrix - 累乗の指数を成分とする行列
public static DoubleMatrix powerElementWise(int scalar,
DoubleMatrix matrix)
scalar - 累乗の対象matrix - 累乗の指数を成分とする行列
public static DoubleMatrix powerElementWise(double scalar,
DoubleMatrix matrix)
scalar - 実数matrix - 累乗の指数を成分とする行列
public static DoubleMatrix powerElementWise(double scalar,
IntMatrix matrix)
scalar - 累乗の対象matrix - 累乗の指数を成分とする行列
public DoubleMatrix cumulativeSum()
Matrix の記述:
Matrix 内の cumulativeSumMatrix.cumulativeSum()public DoubleMatrix cumulativeProduct()
Matrix の記述:
Matrix 内の cumulativeProductMatrix.cumulativeProduct()public DoubleMatrix cumulativeSumRowWise()
Matrix の記述:
Matrix 内の cumulativeSumRowWiseMatrix.cumulativeSumRowWise()public DoubleMatrix cumulativeSumColumnWise()
Matrix の記述:
Matrix 内の cumulativeSumColumnWiseMatrix.cumulativeSumColumnWise()public DoubleMatrix cumulativeProductRowWise()
Matrix の記述:
Matrix 内の cumulativeProductRowWiseMatrix.cumulativeProductRowWise()public DoubleMatrix cumulativeProductColumnWise()
Matrix の記述:
Matrix 内の cumulativeProductColumnWiseMatrix.cumulativeProductColumnWise()public DoubleMatrix meanColumnWise()
Matrix の記述:
Matrix 内の meanColumnWiseMatrix.meanColumnWise()public DoubleMatrix meanRowWise()
Matrix の記述:
Matrix 内の meanRowWiseMatrix.meanRowWise()public DoubleMatrix sumColumnWise()
Matrix の記述:
Matrix 内の sumColumnWiseMatrix.sumColumnWise()public DoubleMatrix sumRowWise()
Matrix の記述:
Matrix 内の sumRowWiseMatrix.sumRowWise()public DoubleMatrix productColumnWise()
Matrix の記述:
Matrix 内の productColumnWiseMatrix.productColumnWise()public DoubleMatrix productRowWise()
Matrix の記述:
Matrix 内の productRowWiseMatrix.productRowWise()public DoubleMatrix addElementWise(int value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の addElementWisevalue - 加える整数
MatrixElementWiseOperator.addElementWise(int)public DoubleMatrix addElementWise(double value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の addElementWisevalue - 加える実数
MatrixElementWiseOperator.addElementWise(double)public Matrix addElementWise(Scalar<?> value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の addElementWisevalue - 加えるスカラー
MatrixElementWiseOperator.addElementWise(org.mklab.nfc.scalar.Scalar)public DoubleMatrix subtractElementWise(int value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の subtractElementWisevalue - 引く実数
MatrixElementWiseOperator.subtractElementWise(int)public DoubleMatrix subtractElementWise(double value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の subtractElementWisevalue - 引く実数
MatrixElementWiseOperator.subtractElementWise(double)public Matrix subtractElementWise(Scalar<?> value)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の subtractElementWisevalue - 引くスカラー
MatrixElementWiseOperator.subtractElementWise(org.mklab.nfc.scalar.Scalar)public DoubleNumber max()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maxNumericalMatrixOperator.max()public DoubleNumber min()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minNumericalMatrixOperator.min()public DoubleNumber sum()
MatrixElementOperator の記述:
MatrixElementOperator<DoubleNumber> 内の sumMatrixElementOperator.sum()public DoubleNumber product()
MatrixElementOperator の記述:
MatrixElementOperator<DoubleNumber> 内の productMatrixElementOperator.product()public DoubleNumber mean()
MatrixElementOperator の記述:
MatrixElementOperator<DoubleNumber> 内の meanMatrixElementOperator.mean()public DoubleNumber median()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の medianNumericalMatrixOperator.median()public DoubleNumber variance()
MatrixElementOperator の記述:
MatrixElementOperator<DoubleNumber> 内の varianceMatrixElementOperator.variance()public DoubleMatrix covariance(DoubleMatrix opponent)
opponent - 対となるベクトル
public DoubleNumber std()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の stdNumericalMatrixOperator.std()public DoubleNumber trace()
MatrixElementOperator の記述:
MatrixElementOperator<DoubleNumber> 内の traceMatrixElementOperator.trace()public BooleanMatrix isFiniteElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の isFiniteElementWiseMatrixElementWiseOperator.isFiniteElementWise()public BooleanMatrix isInfiniteElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の isInfiniteElementWiseMatrixElementWiseOperator.isInfiniteElementWise()public BooleanMatrix isNanElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の isNanElementWiseMatrixElementWiseOperator.isNanElementWise()public DoubleMatrix floorElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の floorElementWiseMatrixElementWiseOperator.floorElementWise()public DoubleMatrix ceilElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の ceilElementWiseMatrixElementWiseOperator.ceilElementWise()public DoubleMatrix fixElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の fixElementWiseMatrixElementWiseOperator.fixElementWise()public DoubleMatrix roundElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の roundElementWiseMatrixElementWiseOperator.roundElementWise()public DoubleMatrix roundToZeroElementWise(double tolerance)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の roundToZeroElementWisetolerance - 許容誤差
MatrixElementWiseOperator.roundToZeroElementWise(double)public DoubleMatrix roundToZeroElementWise(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の roundToZeroElementWisetolerance - 許容誤差
NumericalMatrixOperator.roundToZeroElementWise(org.mklab.nfc.scalar.NumericalScalar)public DoubleMatrix sqrtElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の sqrtElementWiseNumericalMatrixOperator.sqrtElementWise()public DoubleMatrix remainderElementWise(double value)
value - 割る数
public DoubleMatrix remainderElementWise(DoubleMatrix matrix)
matrix - 割る数を成分とする行列
public DoubleMatrix modulusElementWise(double value)
value - 割る数
public DoubleMatrix modulusElementWise(DoubleMatrix matrix)
matrix - 割る数を成分とする行列
public DoubleMatrix atan2ElementWise(DoubleMatrix matrix)
matrix - 分母側の数を成分とする行列
public NumericalMatrixOperator<?> atan2ElementWise(NumericalScalar<?> value)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の atan2ElementWisevalue - 分母側の数
NumericalMatrixOperator.atan2ElementWise(org.mklab.nfc.scalar.NumericalScalar)public DoubleMatrix remainderElementWise(NumericalScalar<?> value)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の remainderElementWisevalue - 割る数
NumericalMatrixOperator.remainderElementWise(org.mklab.nfc.scalar.NumericalScalar)public DoubleMatrix modulusElementWise(NumericalScalar<?> value)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の modulusElementWisevalue - 割る数
NumericalMatrixOperator.modulusElementWise(org.mklab.nfc.scalar.NumericalScalar)public NumericalMatrixOperator<?> atan2ElementWise(Matrix order)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の atan2ElementWiseorder - 分母側の数を成分とする行列
NumericalMatrixOperator.atan2ElementWise(org.mklab.nfc.matrix.Matrix)public DoubleMatrix remainderElementWise(Matrix order)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の remainderElementWiseorder - 割る数を成分とする行列
NumericalMatrixOperator.remainderElementWise(org.mklab.nfc.matrix.Matrix)public DoubleMatrix modulusElementWise(Matrix order)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の modulusElementWiseorder - 割る数を成分とする行列
NumericalMatrixOperator.modulusElementWise(org.mklab.nfc.matrix.Matrix)public DoubleComplexMatrix eigenValue()
NumericalMatrixOperator の記述:固有値は、実部の降順に並べられます。
NumericalMatrixOperator<DoubleNumber> 内の eigenValueNumericalMatrixOperator.eigenValue()public DoubleComplexMatrix eigenVector()
NumericalMatrixOperator の記述:固有ベクトルはノルムが1.0となるよう正規化されます。 固有ベクトルは、固有値の実部の降順に並べられます。固有ベクトルは、固有値に対応して並べられます。
NumericalMatrixOperator<DoubleNumber> 内の eigenVectorNumericalMatrixOperator.eigenVector()public EigenSolution<DoubleComplexMatrix> eigenDecompose()
NumericalMatrixOperator の記述:これらの行列の間には、
A * X = X * Dの関係が成り立ちます。固有ベクトルはノルムが1.0となるよう正規化されます。 固有値は実部の降順に並べられます。固有ベクトルは、固有値に対応して並べられます。
NumericalMatrixOperator<DoubleNumber> 内の eigenDecomposeMatrixの配列NumericalMatrixOperator.eigenDecompose()public DoubleComplexMatrix eigenValue(NumericalMatrixOperator b)
NumericalMatrixOperator の記述:固有値は、実部の降順に並べられます。
NumericalMatrixOperator<DoubleNumber> 内の eigenValueb - 一般化固有値を求める対となる行列
NumericalMatrixOperator.eigenValue(org.mklab.nfc.matrix.NumericalMatrixOperator)public DoubleComplexMatrix eigenValueReal(DoubleMatrix b)
b - 一般化固有分解を求める対となる行列
Matrixの配列NumericalMatrixOperator.eigenValue(org.mklab.nfc.matrix.NumericalMatrixOperator)public NumericalMatrix<DoubleComplexNumber> eigenVector(NumericalMatrixOperator b)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の eigenVectorb - 一般化固有ベクトルを求める対となる行列
NumericalMatrixOperator.eigenVector(org.mklab.nfc.matrix.NumericalMatrixOperator)public DoubleComplexMatrix eigenVector(DoubleMatrix b)
b - 一般化固有ベクトルを求める対となる行列
NumericalMatrixOperator.eigenVector(org.mklab.nfc.matrix.NumericalMatrixOperator)public EigenSolution<NumericalMatrix<?>> eigenDecompose(NumericalMatrixOperator<?> b)
NumericalMatrixOperator の記述:これらの行列の間には、
A * X = X * Dの関係が成り立ちます。固有ベクトルはノルムが1.0となるよう正規化されます。 固有値は、実部の降順に並べられます。固有ベクトルは、固有値に対応して並べられます。
NumericalMatrixOperator<DoubleNumber> 内の eigenDecomposeb - 一般化固有分解を求める対となる行列
Matrixの配列NumericalMatrixOperator.eigenDecompose(org.mklab.nfc.matrix.NumericalMatrixOperator)public EigenSolution<NumericalMatrix<?>> eigenDecompose(DoubleMatrix b)
b - 一般化固有分解を求める対となる行列
Matrixの配列NumericalMatrixOperator.eigenDecompose(org.mklab.nfc.matrix.NumericalMatrixOperator)public QRDecomposition<DoubleMatrix> qrDecompose()
NumericalMatrixOperator の記述:行列Aを直交行列(ユニタリー行列)Qと上三角行列Rの積に分解します。これらの行列の間には、
A = Q * R
Q# * Q = Iの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の qrDecomposeNumericalMatrixOperator.qrDecompose()@Deprecated public QRDecomposition<DoubleMatrix> qrDecomposeWithPermutation()
NumericalMatrixOperator の記述:行列Aを置換行列 P、直交行列(ユニタリー行列)Q、上三角行列Rの積に分解します。これらの行列の間には、
A * P = Q * R
Q# * Q = Iの関係が成り立ちます。上三角行列 R の対角成分は、減少する順に並べられます。
NumericalMatrixOperator<DoubleNumber> 内の qrDecomposeWithPermutationNumericalMatrixOperator.qrDecomposeWithPermutation()public QZDecomposition<NumericalMatrixOperator<?>> qzDecompose(NumericalMatrixOperator<?> b)
NumericalMatrixOperator の記述:行列Aと行列Bを上三角行列 AA, BB、左変換のための 行列 Q、右変換のための行列Zの積に分解します。 これらの行列の間には、
A = Q * AA * Z#
B = Q * BB * Z#
Q# * Q = I
Z# * Z = Iの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の qzDecomposeb - QZ分解をする対となる行列
NumericalMatrixOperator.qzDecompose(org.mklab.nfc.matrix.NumericalMatrixOperator)public QZDecomposition<NumericalMatrixOperator<?>> qzDecompose(DoubleMatrix b)
b - 対象行列
public SchurDecomposition<DoubleMatrix> schurDecompose()
NumericalMatrixOperator の記述:行列をAを直交行列(ユニタリ行列)U、Schur行列 Tの積に分解します。 Schur行列Tは対角成分に行列の実固有値を持っています。 これらの行列の間には、
A = U * T * U#
U# * U = Iの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の schurDecomposeNumericalMatrixOperator.schurDecompose()public DoubleMatrix choleskyDecompose()
NumericalMatrixOperator の記述:もし、Xが正定なら、
R'*R = Xを満たす、上三角行列
Rを求めます。 このメソッドはXの対角と上三角部分のみを利用します。 下三角部分は、上三角部分の転置であると仮定されます。
NumericalMatrixOperator<DoubleNumber> 内の choleskyDecomposeNumericalMatrixOperator.choleskyDecompose()public BalancedDecomposition<DoubleMatrix> balancedDecompose()
NumericalMatrixOperator の記述:対角成分が 2 のべき乗である対角行列 D と、 次式のバランス化された行列 B を求め、
Matrixの配列として返します。
B = D -1 * A * D
A = D * B * D -1行列B は、行列 A より対称行列に近く、各行のノルムが対応する 列のノルムに近いです。
NumericalMatrixOperator<DoubleNumber> 内の balancedDecomposeNumericalMatrixOperator.balancedDecompose()public DoubleMatrix kernel()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の kernelNumericalMatrixOperator.kernel()public DoubleMatrix kernel(double tolerance)
NumericalMatrixOperator の記述:toleranceより小さい特異値をゼロと見なします。
NumericalMatrixOperator<DoubleNumber> 内の kerneltolerance - 許容誤差
NumericalMatrixOperator.kernel(double)public DoubleMatrix kernel(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:toleranceより小さい特異値をゼロと見なします。
NumericalMatrixOperator<DoubleNumber> 内の kerneltolerance - 許容誤差
NumericalMatrixOperator.kernel(org.mklab.nfc.scalar.NumericalScalar)public HessenbergDecomposition<DoubleMatrix> hessenbergDecompose()
NumericalMatrixOperator の記述:行列Aを直交行列(ユニタリ行列)Q、 ヘッセンベルグ行列 H の積に分解します。 これらの行列の間には、
A = Q * H * Q#
Q# * Q = Iの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の hessenbergDecomposeNumericalMatrixOperator.hessenbergDecompose()public LUDecomposition<DoubleMatrix> luDecompose()
NumericalMatrixOperator の記述:行列Aを下三角行を行置換した行列 L、上三角行列 U の積に分解します。 これらの行列の間には、
A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の luDecomposeNumericalMatrixOperator.luDecompose()public LUDecomposition<DoubleMatrix> luDecomposeWithPermutation()
NumericalMatrixOperator の記述:行列 Aを置換行列 P、下三角行列 L、上三角行列 Uの積に分解します。 これらの行列の間には、
P * A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の luDecomposeWithPermutationNumericalMatrixOperator.luDecomposeWithPermutation()public LUDecomposition<DoubleMatrix> luDecompose(double tolerance)
NumericalMatrixOperator の記述:行列Aを下三角行を行置換した行列 L、上三角行列 U の積に分解します。 これらの行列の間には、
A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の luDecomposetolerance - 許容誤差
NumericalMatrixOperator.luDecompose(double)public LUDecomposition<DoubleMatrix> luDecompose(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:行列Aを下三角行を行置換した行列 L、上三角行列 U の積に分解します。 これらの行列の間には、
A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の luDecomposetolerance - 許容誤差
NumericalMatrixOperator.luDecompose(org.mklab.nfc.scalar.NumericalScalar)public LUDecomposition<DoubleMatrix> luDecomposeWithPermutation(double tolerance)
NumericalMatrixOperator の記述:行列 Aを置換行列 P、下三角行列 L、上三角行列 Uの積に分解します。 これらの行列の間には、
P * A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の luDecomposeWithPermutationtolerance - 許容誤差
NumericalMatrixOperator.luDecomposeWithPermutation(double)public LUDecomposition<DoubleMatrix> luDecomposeWithPermutation(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:行列 Aを置換行列 P、下三角行列 L、上三角行列 Uの積に分解します。 これらの行列の間には、
P * A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber> 内の luDecomposeWithPermutationtolerance - 許容誤差
NumericalMatrixOperator.luDecomposeWithPermutation(org.mklab.nfc.scalar.NumericalScalar)public DoubleMatrix pseudoInverse()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の pseudoInverseNumericalMatrixOperator.pseudoInverse()public DoubleMatrix pseudoInverse(double tolerance)
NumericalMatrixOperator の記述:toleranceより小さい A の特異値をゼロとみなし、行列 A のランクを決定し、 擬似逆行列を求めます。
NumericalMatrixOperator<DoubleNumber> 内の pseudoInversetolerance - 許容誤差
NumericalMatrixOperator.pseudoInverse(double)public DoubleMatrix pseudoInverse(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:toleranceより小さい A の特異値をゼロとみなし、行列 A のランクを決定し、 擬似逆行列を求めます。
NumericalMatrixOperator<DoubleNumber> 内の pseudoInversetolerance - 許容誤差
NumericalMatrixOperator.pseudoInverse(org.mklab.nfc.scalar.NumericalScalar)public int rank()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の rankNumericalMatrixOperator.rank()public int rank(double tolerance)
NumericalMatrixOperator の記述:toleranceより大きい特異値の数)を返します。
NumericalMatrixOperator<DoubleNumber> 内の ranktolerance - 許容誤差
NumericalMatrixOperator.rank(double)public int rank(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:toleranceより大きい特異値の数)を返します。
NumericalMatrixOperator<DoubleNumber> 内の ranktolerance - 許容誤差
NumericalMatrixOperator.rank(org.mklab.nfc.scalar.NumericalScalar)public boolean isFullRank()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の isFullRankNumericalMatrixOperator.isFullRank()public boolean isFullRank(double tolerance)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の isFullRanktolerance - 許容誤差
NumericalMatrixOperator.isFullRank(double)public boolean isFullRank(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の isFullRanktolerance - 許容誤差
NumericalMatrixOperator.isFullRank(org.mklab.nfc.scalar.NumericalScalar)public SingularValueDecomposition<DoubleMatrix> singularValueDecompose()
NumericalMatrixOperator の記述:自身と同じ大きさで、負でない実数(特異値) を対角成分にもつ行列を Dとすると、
A = U * D * V#を満たす直交行列(ユニタリ 行列) U と V を求めます。
NumericalMatrixOperator<DoubleNumber> 内の singularValueDecomposeNumericalMatrixOperator.singularValueDecompose()public DoubleMatrix singularValue()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の singularValueNumericalMatrixOperator.singularValue()public DoubleNumber maxSingularValue()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maxSingularValueNumericalMatrixOperator.maxSingularValue()public DoubleNumber minSingularValue()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minSingularValueNumericalMatrixOperator.minSingularValue()public DoubleNumber conditionNumber()
NumericalMatrixOperator の記述:行列の2-ノルムに関する条件数を求めます。条件数は、 最大特異値と最小特異値の比で与えられ、1 以上です。
NumericalMatrixOperator<DoubleNumber> 内の conditionNumberNumericalMatrixOperator.conditionNumber()public DoubleComplexMatrix fft()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の fftNumericalMatrixOperator.fft()public DoubleComplexMatrix fft(int dataCount)
NumericalMatrixOperator の記述:dataSize点まで基底が 2 の高速フーリエ変換をします。
自身 の長さがdataSizeより短いとき、ゼロが後ろに付け加えられ、 自身
の長さがdataSizeより長いとき、dataSize 番目以降が切り捨てられます。
NumericalMatrixOperator<DoubleNumber> 内の fftdataCount - データの個数
NumericalMatrixOperator.fft(int)public DoubleComplexMatrix fftRowWise()
NumericalMatrixOperator の記述:列の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の fftRowWiseNumericalMatrixOperator.fftRowWise()public DoubleComplexMatrix fftRowWise(int dataCount)
NumericalMatrixOperator の記述:dataSize点まで,基底が 2 の高速フーリエ変換を計算します。
dataSizeは2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の fftRowWisedataCount - データの個数
NumericalMatrixOperator.fftRowWise(int)public DoubleComplexMatrix fftColumnWise()
NumericalMatrixOperator の記述:行の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の fftColumnWiseNumericalMatrixOperator.fftColumnWise()public DoubleComplexMatrix fftColumnWise(int dataCount)
NumericalMatrixOperator の記述:dataSize点まで、基底が 2 の高速フーリエ変換を計算します。
dataSizeは2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の fftColumnWisedataCount - データの個数
NumericalMatrixOperator.fftColumnWise(int)public DoubleComplexMatrix ifft()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の ifftNumericalMatrixOperator.ifft()public DoubleComplexMatrix ifft(int dataCount)
NumericalMatrixOperator の記述:dataSize点まで基底が2の逆高速フーリエ変換をします。
自身の長さがdataSizeより短いとき、ゼロが後ろに付け加えられ、 自身
の長さがdataSizeより長いとき、dataSize 番目以降が切り捨てられます。
NumericalMatrixOperator<DoubleNumber> 内の ifftdataCount - データの個数
NumericalMatrixOperator.ifft(int)public DoubleComplexMatrix ifftRowWise()
NumericalMatrixOperator の記述:列の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の ifftRowWiseNumericalMatrixOperator.ifftRowWise()public DoubleComplexMatrix ifftRowWise(int dataCount)
NumericalMatrixOperator の記述:dataSize点まで,基底が 2 の逆高速フーリエ変換を計算します。
dataSizeは2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の ifftRowWisedataCount - 変換するデータの数
NumericalMatrixOperator.ifftRowWise(int)public DoubleComplexMatrix ifftColumnWise()
NumericalMatrixOperator の記述:行の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の ifftColumnWiseNumericalMatrixOperator.ifftColumnWise()public DoubleComplexMatrix ifftColumnWise(int dataCount)
NumericalMatrixOperator の記述:dataSize点まで、基底が 2 の逆高速フーリエ変換を計算します。
dataSizeは2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber> 内の ifftColumnWisedataCount - データの個数
NumericalMatrixOperator.ifftColumnWise(int)public DoubleComplexMatrix log()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の logNumericalMatrixOperator.log()public DoubleComplexMatrix sqrt()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の sqrtNumericalMatrixOperator.sqrt()public DoubleMatrix exp()
NumericalMatrixOperator の記述:自身をAとするとき、このメソッドは、
I + A + A^2/(2!) + ... + A^n/(n!) + ...を求めます。
NumericalMatrixOperator<DoubleNumber> 内の expNumericalMatrixOperator.exp()public DoubleMatrix exp(double tolerance)
NumericalMatrixOperator の記述:自身をAとするとき、このメソッドは、
I + A + A^2/(2!) + ... + A^n/(n!) + ...を求めます。
NumericalMatrixOperator<DoubleNumber> 内の exptolerance - 許容誤差
NumericalMatrixOperator.exp(double)public DoubleMatrix exp(NumericalScalar<?> tolerance)
NumericalMatrixOperator の記述:自身をAとするとき、このメソッドは、
I + A + A^2/(2!) + ... + A^n/(n!) + ...を求めます。
NumericalMatrixOperator<DoubleNumber> 内の exptolerance - 許容誤差
NumericalMatrixOperator.exp(org.mklab.nfc.scalar.NumericalScalar)public DoubleMatrix sinElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の sinElementWiseNumericalMatrixOperator.sinElementWise()public DoubleMatrix sinhElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の sinhElementWiseNumericalMatrixOperator.sinhElementWise()public DoubleMatrix asinElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の asinElementWiseNumericalMatrixOperator.asinElementWise()public DoubleMatrix asinhElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の asinhElementWiseNumericalMatrixOperator.asinhElementWise()public DoubleMatrix cosElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の cosElementWiseNumericalMatrixOperator.cosElementWise()public DoubleMatrix coshElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の coshElementWiseNumericalMatrixOperator.coshElementWise()public DoubleMatrix acosElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の acosElementWiseNumericalMatrixOperator.acosElementWise()public DoubleMatrix acoshElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の acoshElementWiseNumericalMatrixOperator.acoshElementWise()public DoubleMatrix tanElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の tanElementWiseNumericalMatrixOperator.tanElementWise()public DoubleMatrix tanhElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の tanhElementWiseNumericalMatrixOperator.tanhElementWise()public DoubleMatrix atanElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の atanElementWiseNumericalMatrixOperator.atanElementWise()public DoubleMatrix atanhElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の atanhElementWiseNumericalMatrixOperator.atanhElementWise()public DoubleMatrix expElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の expElementWiseNumericalMatrixOperator.expElementWise()public DoubleMatrix logElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の logElementWiseNumericalMatrixOperator.logElementWise()public DoubleMatrix log10ElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の log10ElementWiseNumericalMatrixOperator.log10ElementWise()public DoubleMatrix argumentElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の argumentElementWiseNumericalMatrixOperator.argumentElementWise()public DoubleMatrix signumElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の signumElementWiseNumericalMatrixOperator.signumElementWise()public DoubleMatrix absElementWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の absElementWiseNumericalMatrixOperator.absElementWise()public DoubleMatrix stdRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の stdRowWiseNumericalMatrixOperator.stdRowWise()public DoubleMatrix stdColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の stdColumnWiseNumericalMatrixOperator.stdColumnWise()public IndexedMatrix<DoubleMatrix> sortRowWise()
NumericalMatrixOperator の記述:IntMatrix)を返します。
複素行列のときは、絶対値でソートします。
NumericalMatrixOperator<DoubleNumber> 内の sortRowWiseNumericalMatrixOperator.sortRowWise()public IndexedMatrix<DoubleMatrix> sortColumnWise()
NumericalMatrixOperator の記述:IntMatrix)を返します。
自身が複素行列のときは、絶対値でソートします。
NumericalMatrixOperator<DoubleNumber> 内の sortColumnWiseNumericalMatrixOperator.sortColumnWise()public DoubleMatrix maxRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maxRowWiseNumericalMatrixOperator.maxRowWise()public DoubleMatrix maxColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maxColumnWiseNumericalMatrixOperator.maxColumnWise()public ElementHolder<DoubleNumber> maximum()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maximumNumericalMatrixOperator.maximum()public IndexedMatrix<DoubleMatrix> maximumRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maximumRowWiseNumericalMatrixOperator.maximumRowWise()public IndexedMatrix<DoubleMatrix> maximumColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の maximumColumnWiseNumericalMatrixOperator.maximumColumnWise()public DoubleMatrix minRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minRowWiseNumericalMatrixOperator.minRowWise()public DoubleMatrix minColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minColumnWiseNumericalMatrixOperator.minColumnWise()public ElementHolder<DoubleNumber> minimum()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minimumNumericalMatrixOperator.minimum()public IndexedMatrix<DoubleMatrix> minimumRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minimumRowWiseNumericalMatrixOperator.minimumRowWise()public IndexedMatrix<DoubleMatrix> minimumColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の minimumColumnWiseNumericalMatrixOperator.minimumColumnWise()public Matrix maxElementWise(Matrix opponent)
NumericalMatrixOperator の記述:opponentと成分毎に比較し、大きいほうを成分にもつ行列を返します。
複素行列のときは、絶対値で比較されます。
NumericalMatrixOperator<DoubleNumber> 内の maxElementWiseopponent - 比較する行列
NumericalMatrixOperator.maxElementWise(org.mklab.nfc.matrix.Matrix)public Matrix minElementWise(Matrix opponent)
NumericalMatrixOperator の記述:opponentと成分毎に比較し、小さいほうを成分にもつ行列を返します。
複素行列のときは、絶対値で比較されます。
NumericalMatrixOperator<DoubleNumber> 内の minElementWiseopponent - 比較する行列
NumericalMatrixOperator.minElementWise(org.mklab.nfc.matrix.Matrix)public DoubleMatrix maxElementWise(DoubleMatrix opponent)
opponent - 比較対象
public DoubleMatrix minElementWise(DoubleMatrix opponent)
opponent - 比較対象
public DoubleMatrix medianColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の medianColumnWiseNumericalMatrixOperator.medianColumnWise()public DoubleMatrix medianRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の medianRowWiseNumericalMatrixOperator.medianRowWise()public DoubleNumber norm(NormType type)
NumericalMatrixOperator の記述:NormType.FROBENIUS)でフロベニウスノルム、 norm(
NormType.INFINITY)で無限大ノルム、 norm(
NormType.ONE)で1-ノルムを、 norm(NormType.TWO)で最大特異値を返します。
NumericalMatrixOperator<DoubleNumber> 内の normtype - ノルムの種類を指定
NumericalMatrixOperator.norm(org.mklab.nfc.matrix.NormType)public DoubleNumber frobNorm()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の frobNormNumericalMatrixOperator.frobNorm()public DoubleMatrix frobNormRowWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の frobNormRowWiseNumericalMatrixOperator.frobNormRowWise()public DoubleMatrix frobNormColumnWise()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の frobNormColumnWiseNumericalMatrixOperator.frobNormColumnWise()public DoubleNumber infNorm()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の infNormNumericalMatrixOperator.infNorm()public DoubleMatrix powerElementWise(double order)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の powerElementWiseorder - 累乗の指数
NumericalMatrixOperator.powerElementWise(double)public NumericalMatrixOperator<?> powerElementWise(NumericalScalar<?> order)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の powerElementWiseorder - 累乗の指数(複素数)
NumericalMatrixOperator.powerElementWise(org.mklab.nfc.scalar.NumericalScalar)public DoubleMatrix powerElementWise(DoubleMatrix value)
value - 累乗の指数を成分とする行列
public NumericalMatrix<?> powerElementWise(NumericalMatrix<?> value)
value - 累乗の指数を成分とする行列
public IndexedMatrix<DoubleMatrix> sort()
NumericalMatrixOperator の記述:IntMatrix)を返します。
複素行列のときは、絶対値でソートします。
NumericalMatrixOperator<DoubleNumber> 内の sortIntMatrix)NumericalMatrixOperator.sort()public DoubleMatrix inverse()
Matrix の記述:this -1 )を返します。
Matrix 内の inverseMatrix.inverse()public NumericalMatrixOperator<?> powerElementWise(Matrix order)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の powerElementWiseNumericalMatrixOperator<DoubleNumber> 内の powerElementWiseAbstractMatrix<DoubleMatrix> 内の powerElementWiseorder - 累乗の指数を成分とする行列
MatrixElementWiseOperator.powerElementWise(org.mklab.nfc.matrix.Matrix)public static DoubleMatrix unit(int size)
size*sizeの単位行列を生成します。
size - サイズ指定
public static DoubleMatrix unit(int rowSize,
int columnSize)
rowSize*columnSizeの実単位行列を生成します。
rowSize - 行の数columnSize - 列の数
rowSize*columnSizeの単位行列public static DoubleMatrix unit(Matrix matrix)
matrixと同サイズの実単位行列を生成します。
matrix - 行列
public static DoubleMatrix unit(int rowNumber,
int columnNumber,
Grid block)
blockのrowNumber*columnNumber 倍の実単位行列を生成します。
rowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber* columnNumber倍の実単位行列
public DoubleMatrix createUnit(int rowSize,
int columnSize)
Matrix の記述:rowSize*columnSizeの単位行列を生成します。
Matrix 内の createUnitrowSize - 行の数columnSize - 列の数
rowSize*columnSizeの単位行列Matrix.createUnit(int, int)
public DoubleMatrix createZero(int rowSize,
int columnSize)
Matrix の記述:rowSize*columnSizeの零行列を生成します。
Matrix 内の createZerorowSize - 行の数columnSize - 列の数
rowSize*columnSizeの零行列Matrix.createZero(int, int)
public DoubleMatrix createOnes(int rowSize,
int columnSize)
Matrix の記述:rowSize*columnSizeの全成分が1である行列を生成します。
Matrix 内の createOnesrowSize - 行の数columnSize - 列の数
rowSize*columnSizeの全成分が1である行列Matrix.createOnes(int, int)public DoubleMatrix createUniformRandom()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の createUniformRandomNumericalMatrixOperator.createUniformRandom()
public DoubleMatrix createUniformRandom(int rowNumber,
int columnNumber,
Grid block)
NumericalMatrixOperator の記述:blockのrowNumber*columnNumber倍の
0〜1の範囲の一様分布のランダムな成分を持つ
rowSize*columnSizeの行列を生成します。
NumericalMatrixOperator<DoubleNumber> 内の createUniformRandomrowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber*
columnNumber倍の
0〜1の範囲の一様分布のランダムな成分を持つrowSize*columnSizeの行列NumericalMatrixOperator.createUniformRandom(int, int, org.mklab.nfc.matrix.Grid)
public DoubleMatrix createUniformRandom(int rowSize,
int columnSize)
NumericalMatrixOperator の記述:rowSize*columnSizeの行列を生成します 。
NumericalMatrixOperator<DoubleNumber> 内の createUniformRandomrowSize - 行の数columnSize - 列の数
NumericalMatrixOperator.createUniformRandom(int, int)
public DoubleMatrix createUniformRandom(int rowSize,
int columnSize,
long seed)
NumericalMatrixOperator の記述:rowSize*columnSizeの行列を生成します 。
NumericalMatrixOperator<DoubleNumber> 内の createUniformRandomrowSize - 行の数columnSize - 列の数seed - 乱数の種
NumericalMatrixOperator.createUniformRandom(int, int, long)public DoubleMatrix createNormalRandom()
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の createNormalRandomNumericalMatrixOperator.createNormalRandom()
public DoubleMatrix createNormalRandom(int rowNumber,
int columnNumber,
Grid block)
NumericalMatrixOperator の記述:blockのrowNumber*columnNumber倍の
平均0、
分散1の正規分布のランダムな成分を持つrowSize*columnSizeの行列を生成します。
NumericalMatrixOperator<DoubleNumber> 内の createNormalRandomrowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber*
columnNumber倍の
平均0、分散1の正規分布のランダムな成分を持つrowSize*columnSizeの行列NumericalMatrixOperator.createNormalRandom(int, int, org.mklab.nfc.matrix.Grid)
public DoubleMatrix createNormalRandom(int rowSize,
int columnSize)
NumericalMatrixOperator の記述:rowSize*columnSize
の行列を生成します。
NumericalMatrixOperator<DoubleNumber> 内の createNormalRandomrowSize - 行の数columnSize - 列の数
rowSize*columnSizeの行列NumericalMatrixOperator.createNormalRandom(int, int)
public DoubleMatrix createNormalRandom(int rowSize,
int columnSize,
long seed)
NumericalMatrixOperator の記述:rowSize*columnSize
の行列を生成します。
NumericalMatrixOperator<DoubleNumber> 内の createNormalRandomrowSize - 行の数columnSize - 列の数seed - 乱数の種
rowSize*columnSizeの行列NumericalMatrixOperator.createNormalRandom(int, int, long)public boolean isComplex()
Matrix の記述:
Matrix 内の isComplexMatrix.isComplex()public boolean isReal()
Matrix の記述:
Matrix 内の isRealMatrix.isReal()public DoubleMatrix getImaginaryPart()
Matrix の記述:
Matrix 内の getImaginaryPartMatrix.getImaginaryPart()public DoubleMatrix 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()
public DoubleComplexMatrix createComplexMatrix(NumericalMatrixOperator<?> realPart,
NumericalMatrixOperator<?> imagPart)
NumericalMatrixOperator の記述:
NumericalMatrixOperator<DoubleNumber> 内の createComplexMatrixrealPart - 実部行列imagPart - 虚部行列
NumericalMatrixOperator.createComplexMatrix(org.mklab.nfc.matrix.NumericalMatrixOperator, org.mklab.nfc.matrix.NumericalMatrixOperator)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||