public class EconomySVD extends Object
Constructor and Description |
---|
EconomySVD(int m,
int n)
Creates an empty SVD
|
Modifier and Type | Method and Description |
---|---|
EconomySVD |
factor(no.uib.cipr.matrix.DenseMatrix A)
Computes an SVD
|
static EconomySVD |
factorize(no.uib.cipr.matrix.Matrix A)
Convenience method for computing a full SVD
|
double[] |
getS()
Returns the singular values (stored in descending order)
|
no.uib.cipr.matrix.DenseMatrix |
getU()
Returns the left singular vectors, column-wise.
|
no.uib.cipr.matrix.DenseMatrix |
getVt()
Returns the right singular vectors, row-wise.
|
public EconomySVD(int m, int n)
m
- Number of rowsn
- Number of columnspublic static EconomySVD factorize(no.uib.cipr.matrix.Matrix A) throws no.uib.cipr.matrix.NotConvergedException
A
- Matrix to decompose, not modifiedNotConvergedException
public EconomySVD factor(no.uib.cipr.matrix.DenseMatrix A) throws no.uib.cipr.matrix.NotConvergedException
A
- Matrix to decompose. Size must conform, and it will be
overwritten on return. Pass a copy to avoid thisNotConvergedException
public no.uib.cipr.matrix.DenseMatrix getU()
public no.uib.cipr.matrix.DenseMatrix getVt()
public double[] getS()