|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.lapack.DMatrixSvd
public class DMatrixSvd
Singular value decomposition of a matrix A. For an m-by-n matrix A, let mn = min(m,n). Then the singular value decomposition is A = U*S*V', where U is an m-by-mn orthogonal matrix, S is an mn-by-mn diagonal matrix of singular values, and V' is an mn-by-n orthogonal matrix. The columns of U are the left singular vectors and the rows of V' (V transpose) are the right singular vectors.
The singular values s[k] = S(k,k) are in decreasing order, such that s[0] >= s[1] >= ... >= s[mn-1].
| Constructor Summary | |
|---|---|
DMatrixSvd(DMatrix a)
Constructs a singular value decomposition for the specified matrix A. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DMatrixSvd(DMatrix a)
a - the matrix A.| Method Detail |
|---|
public DMatrix getU()
public DMatrix getS()
public double[] getSingularValues()
public DMatrix getV()
public DMatrix getVTranspose()
public double norm2()
public double cond()
public int rank()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||