|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ejml.alg.dense.decomposition.svd.SafeSvd
public class SafeSvd
Wraps around a SingularValueDecomposition and ensures that the input is not modified.
| Constructor Summary | |
|---|---|
SafeSvd(SingularValueDecomposition<DenseMatrix64F> alg)
|
|
| Method Summary | |
|---|---|
boolean |
decompose(DenseMatrix64F orig)
Computes the decomposition of the input matrix. |
double[] |
getSingularValues()
Returns the singular values. |
DenseMatrix64F |
getU(DenseMatrix64F U,
boolean transposed)
Returns the orthogonal 'U' matrix. |
DenseMatrix64F |
getV(DenseMatrix64F V,
boolean transposed)
Returns the orthogonal 'V' matrix. |
DenseMatrix64F |
getW(DenseMatrix64F W)
Returns a diagonal matrix with the singular values. |
boolean |
inputModified()
Is the input matrix to DecompositionInterface.decompose(org.ejml.data.Matrix64F) is modified during
the decomposition process. |
boolean |
isCompact()
If true then compact matrices are returned. |
int |
numberOfSingularValues()
The number of singular values in the matrix. |
int |
numCols()
Number of columns in the decomposed matrix. |
int |
numRows()
Number of rows in the decomposed matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SafeSvd(SingularValueDecomposition<DenseMatrix64F> alg)
| Method Detail |
|---|
public double[] getSingularValues()
SingularValueDecomposition
getSingularValues in interface SingularValueDecomposition<DenseMatrix64F>public int numberOfSingularValues()
SingularValueDecomposition
numberOfSingularValues in interface SingularValueDecomposition<DenseMatrix64F>public boolean isCompact()
SingularValueDecomposition
isCompact in interface SingularValueDecomposition<DenseMatrix64F>
public DenseMatrix64F getU(DenseMatrix64F U,
boolean transposed)
SingularValueDecompositionReturns the orthogonal 'U' matrix.
Internally the SVD algorithm might compute U transposed or it might not. To avoid an unnecessary double transpose the option is provided to select if the transpose is returned.
getU in interface SingularValueDecomposition<DenseMatrix64F>U - Optional storage for U. If null a new instance or internally maintained matrix is returned. Modified.transposed - If the returned U is transposed.
public DenseMatrix64F getV(DenseMatrix64F V,
boolean transposed)
SingularValueDecompositionReturns the orthogonal 'V' matrix.
Internally the SVD algorithm might compute V transposed or it might not. To avoid an unnecessary double transpose the option is provided to select if the transpose is returned.
getV in interface SingularValueDecomposition<DenseMatrix64F>V - Optional storage for v. If null a new instance or internally maintained matrix is returned. Modified.transposed - If the returned V is transposed.
public DenseMatrix64F getW(DenseMatrix64F W)
SingularValueDecomposition
getW in interface SingularValueDecomposition<DenseMatrix64F>W - Optional storage for W. If null a new instance or internally maintained matrix is returned. Modified.
public int numRows()
SingularValueDecomposition
numRows in interface SingularValueDecomposition<DenseMatrix64F>public int numCols()
SingularValueDecomposition
numCols in interface SingularValueDecomposition<DenseMatrix64F>public boolean decompose(DenseMatrix64F orig)
DecompositionInterfaceDecompositionInterface.inputModified() will return true and the matrix should not be
modified until the decomposition is no longer needed.
decompose in interface DecompositionInterface<DenseMatrix64F>orig - The matrix which is being decomposed. Modification is implementation dependent.
public boolean inputModified()
DecompositionInterfaceDecompositionInterface.decompose(org.ejml.data.Matrix64F) is modified during
the decomposition process.
inputModified in interface DecompositionInterface<DenseMatrix64F>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||