public class DMatrixSvd
extends java.lang.Object
The singular values s[k] = S(k,k) are in decreasing order, such that s[0] >= s[1] >= ... >= s[mn-1].
Constructor and Description |
---|
DMatrixSvd(DMatrix a)
Constructs a singular value decomposition for the specified matrix A.
|
Modifier and Type | Method and Description |
---|---|
double |
cond()
Returns the condition number of the matrix A.
|
DMatrix |
getS()
Gets the diagonal matrix S of singular values.
|
double[] |
getSingularValues()
Gets the array s of singular values.
|
DMatrix |
getU()
Gets the matrix U of left singular vectors.
|
DMatrix |
getV()
Gets the matrix V of right singular vectors.
|
DMatrix |
getVTranspose()
Gets the matrix V' (V transposed) of right singular vectors.
|
double |
norm2()
Returns the two-norm of the matrix A.
|
int |
rank()
Returns the effective numerical rank of the matrix A.
|
public DMatrixSvd(DMatrix a)
a
- the matrix A.public DMatrix getU()
public DMatrix getS()
public double[] getSingularValues()
public DMatrix getV()
public DMatrix getVTranspose()
public double norm2()
public double cond()
public int rank()