| Constructor and Description |
|---|
SVD.SVDMatrix(Matrix Arg)
Construct the singular value decomposition
|
SVD.SVDMatrix(Matrix Arg,
boolean thin,
boolean wantu,
boolean wantv)
Construct the singular value decomposition
|
| Modifier and Type | Method and Description |
|---|---|
double |
cond()
Two norm condition number
|
DenseDoubleMatrix2D |
getreciprocalS()
Return the diagonal matrix of the reciprocals of the singular values
|
DenseDoubleMatrix2D |
getS()
Return the diagonal matrix of singular values
|
double[] |
getSingularValues()
Return the one-dimensional array of singular values
|
DenseDoubleMatrix2D |
getU()
Return the left singular vectors
|
DenseDoubleMatrix2D |
getV()
Return the right singular vectors
|
DenseDoubleMatrix2D |
inverse(boolean omit)
Return the Moore-Penrose (generalized) inverse Slightly modified
version of Kim van der Linde's code
|
double |
norm2()
Two norm
|
int |
rank()
Effective numerical matrix rank
|
public SVD.SVDMatrix(Matrix Arg)
Arg - Rectangular matrixpublic SVD.SVDMatrix(Matrix Arg, boolean thin, boolean wantu, boolean wantv)
Arg - Rectangular matrixthin - If true U is economy sizedwantu - If true generate the U matrixwantv - If true generate the V matrixpublic final DenseDoubleMatrix2D getU()
public final DenseDoubleMatrix2D getV()
public final double[] getSingularValues()
public final DenseDoubleMatrix2D getS()
public final DenseDoubleMatrix2D getreciprocalS()
public final DenseDoubleMatrix2D inverse(boolean omit)
omit - if true tolerance based omitting of negligible singular
valuespublic final double norm2()
public final double cond()
public final int rank()
Copyright © 2015 Universal Java Matrix Package. All rights reserved.