|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の clone
AbstractGrid<DoubleMatrix>
内の clone
AbstractGrid.clone()
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(DoubleMatrix opponent, double tolerance)
opponent
と等しいか判定します。
opponent
- 実行列tolerance
- 許容誤差
opponent
と等しければtrue、そうでなければfalsepublic int hashCode()
AbstractGrid<DoubleMatrix>
内の hashCode
AbstractGrid.hashCode()
public boolean isTransformableFrom(Matrix value)
Matrix
の記述:
Matrix
内の isTransformableFrom
AbstractMatrix<DoubleMatrix>
内の isTransformableFrom
value
- 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)
public DoubleMatrix transformFrom(Matrix value)
Matrix
の記述:
Matrix
内の transformFrom
AbstractMatrix<DoubleMatrix>
内の transformFrom
value
- 変換元
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
内の 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 DoubleMatrix multiply(DoubleMatrix value)
value
との積行列を生成します。
value
- 実数行列
value
との積public DoubleMatrix conjugate()
Matrix
の記述:
Matrix
内の conjugate
Matrix.conjugate()
public DoubleMatrix transpose()
FundamentalMatrix
の記述:this
T )を生成します。
FundamentalMatrix
内の transpose
FundamentalMatrix.transpose()
public DoubleMatrix conjugateTranspose()
Matrix
の記述:
Matrix
内の conjugateTranspose
Matrix.conjugateTranspose()
public DoubleNumber determinant()
MatrixElementOperator
の記述:
MatrixElementOperator<DoubleNumber>
内の determinant
MatrixElementOperator.determinant()
public double determinant(NumericalScalar<?> tolerance, boolean stopIfSingular)
tolerance
- 許容誤差stopIfSingular
- trueならば、正則でない場合、処理を中止し、例外を投げます。
public DoubleMatrix inverse(double tolerance, boolean stopIfSingular)
Matrix
の記述:this
-1 )を返します。
Matrix
内の inverse
tolerance
- 許容誤差stopIfSingular
- trueならば、正則でない場合、処理を中止し、例外を投げます。
Matrix.inverse(double, boolean)
public DoubleMatrix inverse(NumericalScalar<?> tolerance, boolean stopIfSingular)
NumericalMatrixOperator
の記述:this
-1 )を返します。
NumericalMatrixOperator<DoubleNumber>
内の inverse
tolerance
- 許容誤差stopIfSingular
- trueならば、正則でない場合、処理を中止し、例外を投げます。
NumericalMatrixOperator.inverse(org.mklab.nfc.scalar.NumericalScalar, boolean)
public DoubleMatrix inverseElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の inverseElementWise
MatrixElementWiseOperator.inverseElementWise()
public DoubleMatrix 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(DoubleMatrix value)
value
の逆行列との積(this
*value
-1 )を生成します。
value
- 実数行列
value
の逆行列との積public DoubleMatrix leftDivide(DoubleMatrix value)
value
の積(this
-1 *value
)を生成します。
value
- 実数行列
value
の積public DoubleMatrix unaryMinus()
Matrix
の記述:
Matrix
内の unaryMinus
Matrix.unaryMinus()
public DoubleMatrix 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 void removeRowVectors(int rowMin, int rowMax)
Grid
の記述:rowMin
行からrowMax
行までを削除します。
Grid
内の removeRowVectors
rowMin
- 行の始まりrowMax
- 行の終わりGrid.removeRowVectors(int, int)
public void removeRowVectors(IntMatrix rowIndex)
Grid
の記述:rowIndex
で指定された行を削除します。
Grid
内の removeRowVectors
rowIndex
- 行指定ベクトルGrid.removeRowVectors(org.mklab.nfc.matrix.IntMatrix)
public void removeColumnVectors(int columnMin, int columnMax)
Grid
の記述:columnMin
列からcolumnMax
列までを削除します。
Grid
内の removeColumnVectors
columnMin
- 列の始まりcolumnMax
- 列の終わりGrid.removeColumnVectors(int, int)
public void removeColumnVectors(IntMatrix columnIndex)
Grid
の記述:columnIndex
で指定された列を削除します。
Grid
内の removeColumnVectors
columnIndex
- 列指定ベクトルGrid.removeColumnVectors(org.mklab.nfc.matrix.IntMatrix)
public DoubleMatrix 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 DoubleMatrix 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 DoubleMatrix 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 DoubleMatrix getSubVector(IntMatrix index)
FundamentalMatrix
の記述:index
で指定した成分を成分とする部分行列を生成します。
FundamentalMatrix
内の getSubVector
index
- 行番号を含むベクトル
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>
内の getElement
row
- 行番号(1から始まる)column
- 列番号(1から始まる)
MatrixElementOperator.getElement(int, int)
public double getDoubleElement(int index)
index
- 成分の番号(1から始まる)
public DoubleNumber getElement(int index)
MatrixElementOperator
の記述:index
で指定した成分を返します。
MatrixElementOperator<DoubleNumber>
内の getElement
index
- 成分の番号(1から始まる)
MatrixElementOperator.getElement(int)
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, 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
内の 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, 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
内の 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, 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
内の 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, 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
内の 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, DoubleMatrix source)
index
で指定した各成分に行列value
の成分を代入します。
index
- 位置をもつベクトルsource
- 設定する行列public void setElement(int row, int column, int value)
MatrixElementOperator
の記述:value
を代入します。
MatrixElementOperator<DoubleNumber>
内の setElement
row
- 行番号(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>
内の setElement
row
- 行番号(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>
内の setElement
index
- 成分の番号(1から始まる)value
- 代入する値MatrixElementOperator.setElement(int, int)
public void setElement(int index, Scalar<?> value)
MatrixElementOperator
の記述:index
で指定した位置にvalue
を代入します。
MatrixElementOperator<DoubleNumber>
内の setElement
index
- 成分の番号(1から始まる)value
- 代入する値MatrixElementOperator.setElement(int, org.mklab.nfc.scalar.Scalar)
public void setElement(int index, double value)
MatrixElementOperator
の記述:index
で指定した位置にvalue
を代入します。
MatrixElementOperator<DoubleNumber>
内の setElement
index
- 成分の番号(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
内の 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 DoubleMatrix 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 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
内の 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)
protected String getGridClassName()
AbstractGrid
の記述:
AbstractGrid<DoubleMatrix>
内の getGridClassName
AbstractGrid.getGridClassName()
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(DoubleMatrix source)
source
の各成分をコピーします。
MatrixElementOperator<DoubleNumber>
内の copy
source
- コピー元の実数行列public void copy(IntMatrix source)
source
の各成分をコピーします。
MatrixElementOperator<DoubleNumber>
内の copy
source
- コピー元の整数行列public DoubleMatrix diagonalToVector()
FundamentalMatrix
の記述:
FundamentalMatrix
内の diagonalToVector
FundamentalMatrix.diagonalToVector()
public DoubleMatrix vectorToDiagonal()
FundamentalMatrix
の記述:
FundamentalMatrix
内の vectorToDiagonal
FundamentalMatrix.vectorToDiagonal()
public DoubleMatrix reshape(int newRowSize, int newColumnSize)
FundamentalMatrix
の記述:newRowSize
*newColumnSize
に変更した行列を生成します。
成分は、行方向の成分順に並べ替えられます。 newRowSize
*
newColumnSize
個の成分を持っていないと、エラーになる。
FundamentalMatrix
内の reshape
newRowSize
- 行の数newColumnSize
- 列の数
FundamentalMatrix.reshape(int, int)
public boolean isZero(double tolerance)
Matrix
の記述:
Matrix
内の isZero
tolerance
- 許容誤差
Matrix.isZero(double)
public boolean isZero(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の isZero
tolerance
- 許容誤差
NumericalMatrixOperator.isZero(org.mklab.nfc.scalar.NumericalScalar)
public boolean isUnit(double tolerance)
Matrix
の記述:
Matrix
内の isUnit
tolerance
- 許容誤差
Matrix.isUnit(double)
public boolean isUnit(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の isUnit
tolerance
- 許容誤差
NumericalMatrixOperator.isUnit(org.mklab.nfc.scalar.NumericalScalar)
public BooleanMatrix compareElementWise(String operator, int value)
MatrixElementWiseOperator
の記述:value
をoperator
で指定された演算子で比較し,
BooleanMatrix
で返します。
MatrixElementWiseOperator
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")value
- 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, int)
public BooleanMatrix compareElementWise(String operator, double value)
MatrixElementWiseOperator
の記述:value
をoperator
で指定された演算子で比較し,
BooleanMatrix
で返します。
MatrixElementWiseOperator
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")value
- 比較対象
MatrixElementWiseOperator.compareElementWise(java.lang.String, double)
public BooleanMatrix compareElementWise(String operator, Scalar<?> value)
MatrixElementWiseOperator
の記述:value
をoperator
で指定された演算子で比較し,
BooleanMatrix
で返します。
MatrixElementWiseOperator
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")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
内の compareElementWise
operator
- 比較演算子(". <", ". <=", ".>", ".>=", ".==", ".!=")opponent
- 比較対象
BooleanMatrix
FundamentalMatrix.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
内の resize
newRowSize
- 指定行の数newColumnSize
- 指定列の数
FundamentalMatrix.resize(int, int)
public DoubleMatrix powerElementWise(int order)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の powerElementWise
order
- 累乗の指数
MatrixElementWiseOperator.powerElementWise(int)
public DoubleMatrix powerElementWise(IntMatrix value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の powerElementWise
value
- 累乗の指数を成分とする行列
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
内の cumulativeSum
Matrix.cumulativeSum()
public DoubleMatrix cumulativeProduct()
Matrix
の記述:
Matrix
内の cumulativeProduct
Matrix.cumulativeProduct()
public DoubleMatrix cumulativeSumRowWise()
Matrix
の記述:
Matrix
内の cumulativeSumRowWise
Matrix.cumulativeSumRowWise()
public DoubleMatrix cumulativeSumColumnWise()
Matrix
の記述:
Matrix
内の cumulativeSumColumnWise
Matrix.cumulativeSumColumnWise()
public DoubleMatrix cumulativeProductRowWise()
Matrix
の記述:
Matrix
内の cumulativeProductRowWise
Matrix.cumulativeProductRowWise()
public DoubleMatrix cumulativeProductColumnWise()
Matrix
の記述:
Matrix
内の cumulativeProductColumnWise
Matrix.cumulativeProductColumnWise()
public DoubleMatrix meanColumnWise()
Matrix
の記述:
Matrix
内の meanColumnWise
Matrix.meanColumnWise()
public DoubleMatrix meanRowWise()
Matrix
の記述:
Matrix
内の meanRowWise
Matrix.meanRowWise()
public DoubleMatrix sumColumnWise()
Matrix
の記述:
Matrix
内の sumColumnWise
Matrix.sumColumnWise()
public DoubleMatrix sumRowWise()
Matrix
の記述:
Matrix
内の sumRowWise
Matrix.sumRowWise()
public DoubleMatrix productColumnWise()
Matrix
の記述:
Matrix
内の productColumnWise
Matrix.productColumnWise()
public DoubleMatrix productRowWise()
Matrix
の記述:
Matrix
内の productRowWise
Matrix.productRowWise()
public DoubleMatrix addElementWise(int value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の addElementWise
value
- 加える整数
MatrixElementWiseOperator.addElementWise(int)
public DoubleMatrix addElementWise(double value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の addElementWise
value
- 加える実数
MatrixElementWiseOperator.addElementWise(double)
public Matrix addElementWise(Scalar<?> value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の addElementWise
value
- 加えるスカラー
MatrixElementWiseOperator.addElementWise(org.mklab.nfc.scalar.Scalar)
public DoubleMatrix subtractElementWise(int value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の subtractElementWise
value
- 引く実数
MatrixElementWiseOperator.subtractElementWise(int)
public DoubleMatrix subtractElementWise(double value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の subtractElementWise
value
- 引く実数
MatrixElementWiseOperator.subtractElementWise(double)
public Matrix subtractElementWise(Scalar<?> value)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の subtractElementWise
value
- 引くスカラー
MatrixElementWiseOperator.subtractElementWise(org.mklab.nfc.scalar.Scalar)
public DoubleNumber max()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の max
NumericalMatrixOperator.max()
public DoubleNumber min()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の min
NumericalMatrixOperator.min()
public DoubleNumber sum()
MatrixElementOperator
の記述:
MatrixElementOperator<DoubleNumber>
内の sum
MatrixElementOperator.sum()
public DoubleNumber product()
MatrixElementOperator
の記述:
MatrixElementOperator<DoubleNumber>
内の product
MatrixElementOperator.product()
public DoubleNumber mean()
MatrixElementOperator
の記述:
MatrixElementOperator<DoubleNumber>
内の mean
MatrixElementOperator.mean()
public DoubleNumber median()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の median
NumericalMatrixOperator.median()
public DoubleNumber variance()
MatrixElementOperator
の記述:
MatrixElementOperator<DoubleNumber>
内の variance
MatrixElementOperator.variance()
public DoubleMatrix covariance(DoubleMatrix opponent)
opponent
- 対となるベクトル
public DoubleNumber std()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の std
NumericalMatrixOperator.std()
public DoubleNumber trace()
MatrixElementOperator
の記述:
MatrixElementOperator<DoubleNumber>
内の trace
MatrixElementOperator.trace()
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 DoubleMatrix floorElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の floorElementWise
MatrixElementWiseOperator.floorElementWise()
public DoubleMatrix ceilElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の ceilElementWise
MatrixElementWiseOperator.ceilElementWise()
public DoubleMatrix fixElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の fixElementWise
MatrixElementWiseOperator.fixElementWise()
public DoubleMatrix roundElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の roundElementWise
MatrixElementWiseOperator.roundElementWise()
public DoubleMatrix roundToZeroElementWise(double tolerance)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の roundToZeroElementWise
tolerance
- 許容誤差
MatrixElementWiseOperator.roundToZeroElementWise(double)
public DoubleMatrix roundToZeroElementWise(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の roundToZeroElementWise
tolerance
- 許容誤差
NumericalMatrixOperator.roundToZeroElementWise(org.mklab.nfc.scalar.NumericalScalar)
public DoubleMatrix sqrtElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の sqrtElementWise
NumericalMatrixOperator.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>
内の atan2ElementWise
value
- 分母側の数
NumericalMatrixOperator.atan2ElementWise(org.mklab.nfc.scalar.NumericalScalar)
public DoubleMatrix remainderElementWise(NumericalScalar<?> value)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の remainderElementWise
value
- 割る数
NumericalMatrixOperator.remainderElementWise(org.mklab.nfc.scalar.NumericalScalar)
public DoubleMatrix modulusElementWise(NumericalScalar<?> value)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の modulusElementWise
value
- 割る数
NumericalMatrixOperator.modulusElementWise(org.mklab.nfc.scalar.NumericalScalar)
public NumericalMatrixOperator<?> atan2ElementWise(Matrix order)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の atan2ElementWise
order
- 分母側の数を成分とする行列
NumericalMatrixOperator.atan2ElementWise(org.mklab.nfc.matrix.Matrix)
public DoubleMatrix remainderElementWise(Matrix order)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の remainderElementWise
order
- 割る数を成分とする行列
NumericalMatrixOperator.remainderElementWise(org.mklab.nfc.matrix.Matrix)
public DoubleMatrix modulusElementWise(Matrix order)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の modulusElementWise
order
- 割る数を成分とする行列
NumericalMatrixOperator.modulusElementWise(org.mklab.nfc.matrix.Matrix)
public DoubleComplexMatrix eigenValue()
NumericalMatrixOperator
の記述:固有値は、実部の降順に並べられます。
NumericalMatrixOperator<DoubleNumber>
内の eigenValue
NumericalMatrixOperator.eigenValue()
public DoubleComplexMatrix eigenVector()
NumericalMatrixOperator
の記述:固有ベクトルはノルムが1.0となるよう正規化されます。 固有ベクトルは、固有値の実部の降順に並べられます。固有ベクトルは、固有値に対応して並べられます。
NumericalMatrixOperator<DoubleNumber>
内の eigenVector
NumericalMatrixOperator.eigenVector()
public EigenSolution<DoubleComplexMatrix> eigenDecompose()
NumericalMatrixOperator
の記述:これらの行列の間には、
A * X = X * Dの関係が成り立ちます。固有ベクトルはノルムが1.0となるよう正規化されます。 固有値は実部の降順に並べられます。固有ベクトルは、固有値に対応して並べられます。
NumericalMatrixOperator<DoubleNumber>
内の eigenDecompose
Matrix
の配列NumericalMatrixOperator.eigenDecompose()
public DoubleComplexMatrix eigenValue(NumericalMatrixOperator b)
NumericalMatrixOperator
の記述:固有値は、実部の降順に並べられます。
NumericalMatrixOperator<DoubleNumber>
内の eigenValue
b
- 一般化固有値を求める対となる行列
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>
内の eigenVector
b
- 一般化固有ベクトルを求める対となる行列
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>
内の eigenDecompose
b
- 一般化固有分解を求める対となる行列
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>
内の qrDecompose
NumericalMatrixOperator.qrDecompose()
@Deprecated public QRDecomposition<DoubleMatrix> qrDecomposeWithPermutation()
NumericalMatrixOperator
の記述:行列Aを置換行列 P、直交行列(ユニタリー行列)Q、上三角行列Rの積に分解します。これらの行列の間には、
A * P = Q * R
Q# * Q = Iの関係が成り立ちます。上三角行列 R の対角成分は、減少する順に並べられます。
NumericalMatrixOperator<DoubleNumber>
内の qrDecomposeWithPermutation
NumericalMatrixOperator.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>
内の qzDecompose
b
- 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>
内の schurDecompose
NumericalMatrixOperator.schurDecompose()
public DoubleMatrix choleskyDecompose()
NumericalMatrixOperator
の記述:もし、X
が正定なら、
R'*R = Xを満たす、上三角行列
R
を求めます。 このメソッドはX
の対角と上三角部分のみを利用します。 下三角部分は、上三角部分の転置であると仮定されます。
NumericalMatrixOperator<DoubleNumber>
内の choleskyDecompose
NumericalMatrixOperator.choleskyDecompose()
public BalancedDecomposition<DoubleMatrix> balancedDecompose()
NumericalMatrixOperator
の記述:対角成分が 2 のべき乗である対角行列 D と、 次式のバランス化された行列 B を求め、
Matrix
の配列として返します。
B = D -1 * A * D
A = D * B * D -1行列B は、行列 A より対称行列に近く、各行のノルムが対応する 列のノルムに近いです。
NumericalMatrixOperator<DoubleNumber>
内の balancedDecompose
NumericalMatrixOperator.balancedDecompose()
public DoubleMatrix kernel()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の kernel
NumericalMatrixOperator.kernel()
public DoubleMatrix kernel(double tolerance)
NumericalMatrixOperator
の記述:tolerance
より小さい特異値をゼロと見なします。
NumericalMatrixOperator<DoubleNumber>
内の kernel
tolerance
- 許容誤差
NumericalMatrixOperator.kernel(double)
public DoubleMatrix kernel(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:tolerance
より小さい特異値をゼロと見なします。
NumericalMatrixOperator<DoubleNumber>
内の kernel
tolerance
- 許容誤差
NumericalMatrixOperator.kernel(org.mklab.nfc.scalar.NumericalScalar)
public HessenbergDecomposition<DoubleMatrix> hessenbergDecompose()
NumericalMatrixOperator
の記述:行列Aを直交行列(ユニタリ行列)Q、 ヘッセンベルグ行列 H の積に分解します。 これらの行列の間には、
A = Q * H * Q#
Q# * Q = Iの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の hessenbergDecompose
NumericalMatrixOperator.hessenbergDecompose()
public LUDecomposition<DoubleMatrix> luDecompose()
NumericalMatrixOperator
の記述:行列Aを下三角行を行置換した行列 L、上三角行列 U の積に分解します。 これらの行列の間には、
A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の luDecompose
NumericalMatrixOperator.luDecompose()
public LUDecomposition<DoubleMatrix> luDecomposeWithPermutation()
NumericalMatrixOperator
の記述:行列 Aを置換行列 P、下三角行列 L、上三角行列 Uの積に分解します。 これらの行列の間には、
P * A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の luDecomposeWithPermutation
NumericalMatrixOperator.luDecomposeWithPermutation()
public LUDecomposition<DoubleMatrix> luDecompose(double tolerance)
NumericalMatrixOperator
の記述:行列Aを下三角行を行置換した行列 L、上三角行列 U の積に分解します。 これらの行列の間には、
A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の luDecompose
tolerance
- 許容誤差
NumericalMatrixOperator.luDecompose(double)
public LUDecomposition<DoubleMatrix> luDecompose(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:行列Aを下三角行を行置換した行列 L、上三角行列 U の積に分解します。 これらの行列の間には、
A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の luDecompose
tolerance
- 許容誤差
NumericalMatrixOperator.luDecompose(org.mklab.nfc.scalar.NumericalScalar)
public LUDecomposition<DoubleMatrix> luDecomposeWithPermutation(double tolerance)
NumericalMatrixOperator
の記述:行列 Aを置換行列 P、下三角行列 L、上三角行列 Uの積に分解します。 これらの行列の間には、
P * A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の luDecomposeWithPermutation
tolerance
- 許容誤差
NumericalMatrixOperator.luDecomposeWithPermutation(double)
public LUDecomposition<DoubleMatrix> luDecomposeWithPermutation(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:行列 Aを置換行列 P、下三角行列 L、上三角行列 Uの積に分解します。 これらの行列の間には、
P * A = L * Uの関係が成り立ちます。
NumericalMatrixOperator<DoubleNumber>
内の luDecomposeWithPermutation
tolerance
- 許容誤差
NumericalMatrixOperator.luDecomposeWithPermutation(org.mklab.nfc.scalar.NumericalScalar)
public DoubleMatrix pseudoInverse()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の pseudoInverse
NumericalMatrixOperator.pseudoInverse()
public DoubleMatrix pseudoInverse(double tolerance)
NumericalMatrixOperator
の記述:tolerance
より小さい A の特異値をゼロとみなし、行列 A のランクを決定し、 擬似逆行列を求めます。
NumericalMatrixOperator<DoubleNumber>
内の pseudoInverse
tolerance
- 許容誤差
NumericalMatrixOperator.pseudoInverse(double)
public DoubleMatrix pseudoInverse(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:tolerance
より小さい A の特異値をゼロとみなし、行列 A のランクを決定し、 擬似逆行列を求めます。
NumericalMatrixOperator<DoubleNumber>
内の pseudoInverse
tolerance
- 許容誤差
NumericalMatrixOperator.pseudoInverse(org.mklab.nfc.scalar.NumericalScalar)
public int rank()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の rank
NumericalMatrixOperator.rank()
public int rank(double tolerance)
NumericalMatrixOperator
の記述:tolerance
より大きい特異値の数)を返します。
NumericalMatrixOperator<DoubleNumber>
内の rank
tolerance
- 許容誤差
NumericalMatrixOperator.rank(double)
public int rank(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:tolerance
より大きい特異値の数)を返します。
NumericalMatrixOperator<DoubleNumber>
内の rank
tolerance
- 許容誤差
NumericalMatrixOperator.rank(org.mklab.nfc.scalar.NumericalScalar)
public boolean isFullRank()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の isFullRank
NumericalMatrixOperator.isFullRank()
public boolean isFullRank(double tolerance)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の isFullRank
tolerance
- 許容誤差
NumericalMatrixOperator.isFullRank(double)
public boolean isFullRank(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の isFullRank
tolerance
- 許容誤差
NumericalMatrixOperator.isFullRank(org.mklab.nfc.scalar.NumericalScalar)
public SingularValueDecomposition<DoubleMatrix> singularValueDecompose()
NumericalMatrixOperator
の記述:自身と同じ大きさで、負でない実数(特異値) を対角成分にもつ行列を Dとすると、
A = U * D * V#を満たす直交行列(ユニタリ 行列) U と V を求めます。
NumericalMatrixOperator<DoubleNumber>
内の singularValueDecompose
NumericalMatrixOperator.singularValueDecompose()
public DoubleMatrix singularValue()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の singularValue
NumericalMatrixOperator.singularValue()
public DoubleNumber maxSingularValue()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の maxSingularValue
NumericalMatrixOperator.maxSingularValue()
public DoubleNumber minSingularValue()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の minSingularValue
NumericalMatrixOperator.minSingularValue()
public DoubleNumber conditionNumber()
NumericalMatrixOperator
の記述:行列の2-ノルムに関する条件数を求めます。条件数は、 最大特異値と最小特異値の比で与えられ、1 以上です。
NumericalMatrixOperator<DoubleNumber>
内の conditionNumber
NumericalMatrixOperator.conditionNumber()
public DoubleComplexMatrix fft()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の fft
NumericalMatrixOperator.fft()
public DoubleComplexMatrix fft(int dataCount)
NumericalMatrixOperator
の記述:dataSize
点まで基底が 2 の高速フーリエ変換をします。
自身 の長さがdataSize
より短いとき、ゼロが後ろに付け加えられ、 自身
の長さがdataSize
より長いとき、dataSize
番目以降が切り捨てられます。
NumericalMatrixOperator<DoubleNumber>
内の fft
dataCount
- データの個数
NumericalMatrixOperator.fft(int)
public DoubleComplexMatrix fftRowWise()
NumericalMatrixOperator
の記述:列の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の fftRowWise
NumericalMatrixOperator.fftRowWise()
public DoubleComplexMatrix fftRowWise(int dataCount)
NumericalMatrixOperator
の記述:dataSize
点まで,基底が 2 の高速フーリエ変換を計算します。
dataSize
は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の fftRowWise
dataCount
- データの個数
NumericalMatrixOperator.fftRowWise(int)
public DoubleComplexMatrix fftColumnWise()
NumericalMatrixOperator
の記述:行の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の fftColumnWise
NumericalMatrixOperator.fftColumnWise()
public DoubleComplexMatrix fftColumnWise(int dataCount)
NumericalMatrixOperator
の記述:dataSize
点まで、基底が 2 の高速フーリエ変換を計算します。
dataSize
は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の fftColumnWise
dataCount
- データの個数
NumericalMatrixOperator.fftColumnWise(int)
public DoubleComplexMatrix ifft()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の ifft
NumericalMatrixOperator.ifft()
public DoubleComplexMatrix ifft(int dataCount)
NumericalMatrixOperator
の記述:dataSize
点まで基底が2の逆高速フーリエ変換をします。
自身の長さがdataSize
より短いとき、ゼロが後ろに付け加えられ、 自身
の長さがdataSize
より長いとき、dataSize
番目以降が切り捨てられます。
NumericalMatrixOperator<DoubleNumber>
内の ifft
dataCount
- データの個数
NumericalMatrixOperator.ifft(int)
public DoubleComplexMatrix ifftRowWise()
NumericalMatrixOperator
の記述:列の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の ifftRowWise
NumericalMatrixOperator.ifftRowWise()
public DoubleComplexMatrix ifftRowWise(int dataCount)
NumericalMatrixOperator
の記述:dataSize
点まで,基底が 2 の逆高速フーリエ変換を計算します。
dataSize
は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の ifftRowWise
dataCount
- 変換するデータの数
NumericalMatrixOperator.ifftRowWise(int)
public DoubleComplexMatrix ifftColumnWise()
NumericalMatrixOperator
の記述:行の数は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の ifftColumnWise
NumericalMatrixOperator.ifftColumnWise()
public DoubleComplexMatrix ifftColumnWise(int dataCount)
NumericalMatrixOperator
の記述:dataSize
点まで、基底が 2 の逆高速フーリエ変換を計算します。
dataSize
は2のべき乗でなければならない。
NumericalMatrixOperator<DoubleNumber>
内の ifftColumnWise
dataCount
- データの個数
NumericalMatrixOperator.ifftColumnWise(int)
public DoubleComplexMatrix log()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の log
NumericalMatrixOperator.log()
public DoubleComplexMatrix sqrt()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の sqrt
NumericalMatrixOperator.sqrt()
public DoubleMatrix exp()
NumericalMatrixOperator
の記述:自身をAとするとき、このメソッドは、
I + A + A^2/(2!) + ... + A^n/(n!) + ...を求めます。
NumericalMatrixOperator<DoubleNumber>
内の exp
NumericalMatrixOperator.exp()
public DoubleMatrix exp(double tolerance)
NumericalMatrixOperator
の記述:自身をAとするとき、このメソッドは、
I + A + A^2/(2!) + ... + A^n/(n!) + ...を求めます。
NumericalMatrixOperator<DoubleNumber>
内の exp
tolerance
- 許容誤差
NumericalMatrixOperator.exp(double)
public DoubleMatrix exp(NumericalScalar<?> tolerance)
NumericalMatrixOperator
の記述:自身をAとするとき、このメソッドは、
I + A + A^2/(2!) + ... + A^n/(n!) + ...を求めます。
NumericalMatrixOperator<DoubleNumber>
内の exp
tolerance
- 許容誤差
NumericalMatrixOperator.exp(org.mklab.nfc.scalar.NumericalScalar)
public DoubleMatrix sinElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の sinElementWise
NumericalMatrixOperator.sinElementWise()
public DoubleMatrix sinhElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の sinhElementWise
NumericalMatrixOperator.sinhElementWise()
public DoubleMatrix asinElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の asinElementWise
NumericalMatrixOperator.asinElementWise()
public DoubleMatrix asinhElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の asinhElementWise
NumericalMatrixOperator.asinhElementWise()
public DoubleMatrix cosElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の cosElementWise
NumericalMatrixOperator.cosElementWise()
public DoubleMatrix coshElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の coshElementWise
NumericalMatrixOperator.coshElementWise()
public DoubleMatrix acosElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の acosElementWise
NumericalMatrixOperator.acosElementWise()
public DoubleMatrix acoshElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の acoshElementWise
NumericalMatrixOperator.acoshElementWise()
public DoubleMatrix tanElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の tanElementWise
NumericalMatrixOperator.tanElementWise()
public DoubleMatrix tanhElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の tanhElementWise
NumericalMatrixOperator.tanhElementWise()
public DoubleMatrix atanElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の atanElementWise
NumericalMatrixOperator.atanElementWise()
public DoubleMatrix atanhElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の atanhElementWise
NumericalMatrixOperator.atanhElementWise()
public DoubleMatrix expElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の expElementWise
NumericalMatrixOperator.expElementWise()
public DoubleMatrix logElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の logElementWise
NumericalMatrixOperator.logElementWise()
public DoubleMatrix log10ElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の log10ElementWise
NumericalMatrixOperator.log10ElementWise()
public DoubleMatrix argumentElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の argumentElementWise
NumericalMatrixOperator.argumentElementWise()
public DoubleMatrix signumElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の signumElementWise
NumericalMatrixOperator.signumElementWise()
public DoubleMatrix absElementWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の absElementWise
NumericalMatrixOperator.absElementWise()
public DoubleMatrix stdRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の stdRowWise
NumericalMatrixOperator.stdRowWise()
public DoubleMatrix stdColumnWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の stdColumnWise
NumericalMatrixOperator.stdColumnWise()
public IndexedMatrix<DoubleMatrix> sortRowWise()
NumericalMatrixOperator
の記述:IntMatrix
)を返します。
複素行列のときは、絶対値でソートします。
NumericalMatrixOperator<DoubleNumber>
内の sortRowWise
NumericalMatrixOperator.sortRowWise()
public IndexedMatrix<DoubleMatrix> sortColumnWise()
NumericalMatrixOperator
の記述:IntMatrix
)を返します。
自身が複素行列のときは、絶対値でソートします。
NumericalMatrixOperator<DoubleNumber>
内の sortColumnWise
NumericalMatrixOperator.sortColumnWise()
public DoubleMatrix maxRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の maxRowWise
NumericalMatrixOperator.maxRowWise()
public DoubleMatrix maxColumnWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の maxColumnWise
NumericalMatrixOperator.maxColumnWise()
public ElementHolder<DoubleNumber> maximum()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の maximum
NumericalMatrixOperator.maximum()
public IndexedMatrix<DoubleMatrix> maximumRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の maximumRowWise
NumericalMatrixOperator.maximumRowWise()
public IndexedMatrix<DoubleMatrix> maximumColumnWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の maximumColumnWise
NumericalMatrixOperator.maximumColumnWise()
public DoubleMatrix minRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の minRowWise
NumericalMatrixOperator.minRowWise()
public DoubleMatrix minColumnWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の minColumnWise
NumericalMatrixOperator.minColumnWise()
public ElementHolder<DoubleNumber> minimum()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の minimum
NumericalMatrixOperator.minimum()
public IndexedMatrix<DoubleMatrix> minimumRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の minimumRowWise
NumericalMatrixOperator.minimumRowWise()
public IndexedMatrix<DoubleMatrix> minimumColumnWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の minimumColumnWise
NumericalMatrixOperator.minimumColumnWise()
public Matrix maxElementWise(Matrix opponent)
NumericalMatrixOperator
の記述:opponent
と成分毎に比較し、大きいほうを成分にもつ行列を返します。
複素行列のときは、絶対値で比較されます。
NumericalMatrixOperator<DoubleNumber>
内の maxElementWise
opponent
- 比較する行列
NumericalMatrixOperator.maxElementWise(org.mklab.nfc.matrix.Matrix)
public Matrix minElementWise(Matrix opponent)
NumericalMatrixOperator
の記述:opponent
と成分毎に比較し、小さいほうを成分にもつ行列を返します。
複素行列のときは、絶対値で比較されます。
NumericalMatrixOperator<DoubleNumber>
内の minElementWise
opponent
- 比較する行列
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>
内の medianColumnWise
NumericalMatrixOperator.medianColumnWise()
public DoubleMatrix medianRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の medianRowWise
NumericalMatrixOperator.medianRowWise()
public DoubleNumber norm(NormType type)
NumericalMatrixOperator
の記述:NormType.FROBENIUS
)でフロベニウスノルム、 norm(
NormType.INFINITY
)で無限大ノルム、 norm(
NormType.ONE
)で1-ノルムを、 norm(NormType.TWO
)で最大特異値を返します。
NumericalMatrixOperator<DoubleNumber>
内の norm
type
- ノルムの種類を指定
NumericalMatrixOperator.norm(org.mklab.nfc.matrix.NormType)
public DoubleNumber frobNorm()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の frobNorm
NumericalMatrixOperator.frobNorm()
public DoubleMatrix frobNormRowWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の frobNormRowWise
NumericalMatrixOperator.frobNormRowWise()
public DoubleMatrix frobNormColumnWise()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の frobNormColumnWise
NumericalMatrixOperator.frobNormColumnWise()
public DoubleNumber infNorm()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の infNorm
NumericalMatrixOperator.infNorm()
public DoubleMatrix powerElementWise(double order)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の powerElementWise
order
- 累乗の指数
NumericalMatrixOperator.powerElementWise(double)
public NumericalMatrixOperator<?> powerElementWise(NumericalScalar<?> order)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の powerElementWise
order
- 累乗の指数(複素数)
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>
内の sort
IntMatrix
)NumericalMatrixOperator.sort()
public DoubleMatrix inverse()
Matrix
の記述:this
-1 )を返します。
Matrix
内の inverse
Matrix.inverse()
public NumericalMatrixOperator<?> powerElementWise(Matrix order)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の powerElementWise
NumericalMatrixOperator<DoubleNumber>
内の powerElementWise
AbstractMatrix<DoubleMatrix>
内の powerElementWise
order
- 累乗の指数を成分とする行列
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
内の createUnit
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の単位行列Matrix.createUnit(int, int)
public DoubleMatrix createZero(int rowSize, int columnSize)
Matrix
の記述:rowSize
*columnSize
の零行列を生成します。
Matrix
内の createZero
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の零行列Matrix.createZero(int, int)
public DoubleMatrix createOnes(int rowSize, int columnSize)
Matrix
の記述:rowSize
*columnSize
の全成分が1である行列を生成します。
Matrix
内の createOnes
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の全成分が1である行列Matrix.createOnes(int, int)
public DoubleMatrix createUniformRandom()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の createUniformRandom
NumericalMatrixOperator.createUniformRandom()
public DoubleMatrix createUniformRandom(int rowNumber, int columnNumber, Grid block)
NumericalMatrixOperator
の記述:block
のrowNumber
*columnNumber
倍の
0〜1の範囲の一様分布のランダムな成分を持つ
rowSize
*columnSize
の行列を生成します。
NumericalMatrixOperator<DoubleNumber>
内の createUniformRandom
rowNumber
- 行方向の倍数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>
内の createUniformRandom
rowSize
- 行の数columnSize
- 列の数
NumericalMatrixOperator.createUniformRandom(int, int)
public DoubleMatrix createUniformRandom(int rowSize, int columnSize, long seed)
NumericalMatrixOperator
の記述:rowSize
*columnSize
の行列を生成します 。
NumericalMatrixOperator<DoubleNumber>
内の createUniformRandom
rowSize
- 行の数columnSize
- 列の数seed
- 乱数の種
NumericalMatrixOperator.createUniformRandom(int, int, long)
public DoubleMatrix createNormalRandom()
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の createNormalRandom
NumericalMatrixOperator.createNormalRandom()
public DoubleMatrix createNormalRandom(int rowNumber, int columnNumber, Grid block)
NumericalMatrixOperator
の記述:block
のrowNumber
*columnNumber
倍の
平均0、
分散1の正規分布のランダムな成分を持つrowSize
*columnSize
の行列を生成します。
NumericalMatrixOperator<DoubleNumber>
内の createNormalRandom
rowNumber
- 行方向の倍数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>
内の createNormalRandom
rowSize
- 行の数columnSize
- 列の数
rowSize
*columnSize
の行列NumericalMatrixOperator.createNormalRandom(int, int)
public DoubleMatrix createNormalRandom(int rowSize, int columnSize, long seed)
NumericalMatrixOperator
の記述:rowSize
*columnSize
の行列を生成します。
NumericalMatrixOperator<DoubleNumber>
内の createNormalRandom
rowSize
- 行の数columnSize
- 列の数seed
- 乱数の種
rowSize
*columnSize
の行列NumericalMatrixOperator.createNormalRandom(int, int, long)
public boolean isComplex()
Matrix
の記述:
Matrix
内の isComplex
Matrix.isComplex()
public boolean isReal()
Matrix
の記述:
Matrix
内の isReal
Matrix.isReal()
public DoubleMatrix getImaginaryPart()
Matrix
の記述:
Matrix
内の getImaginaryPart
Matrix.getImaginaryPart()
public DoubleMatrix 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()
public DoubleComplexMatrix createComplexMatrix(NumericalMatrixOperator<?> realPart, NumericalMatrixOperator<?> imagPart)
NumericalMatrixOperator
の記述:
NumericalMatrixOperator<DoubleNumber>
内の createComplexMatrix
realPart
- 実部行列imagPart
- 虚部行列
NumericalMatrixOperator.createComplexMatrix(org.mklab.nfc.matrix.NumericalMatrixOperator, org.mklab.nfc.matrix.NumericalMatrixOperator)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |