#include <dense_svd_decomposition.h>
|
virtual void | Compute (MatrixType &rInputMatrix, Parameters Settings)=0 |
| Compute the SVD Computes the Singular Value Decomposition (SVD) of the given imput matrix. More...
|
|
virtual void | Compute (MatrixType &rInputMatrix, VectorType &rVectorS, MatrixType &rMatrixU, MatrixType &rMatrixV, Parameters Settings)=0 |
| Compute the SVD Computes the Singular Value Decomposition (SVD) of the given input matrix. More...
|
|
virtual void | MatrixU (MatrixType &rMatrixU)=0 |
| Left singular vectors matrix getter If computed, this method sets the left singular vectors matrix in the provided array. More...
|
|
virtual void | MatrixV (MatrixType &rMatrixV)=0 |
| Right singular vectors matrix getter If computed, this method sets the right singular vectors matrix in the provided array Note that this method is understood to return V (not its transpose). This means that this matrix needs to be transposed in order to reconstruct the input matrix. More...
|
|
virtual void | SingularValues (VectorType &rVectorS)=0 |
| Singular values vector getter This method sets the singular values vector in the provided array. More...
|
|
virtual std::size_t | NonZeroSingularValues ()=0 |
| Number of non-zero singular values This method returns the number of non-zero singular values. More...
|
|
virtual void | SetThreshold (const double RelTolerance)=0 |
| Set the relative threshold tolerance This method sets the relative threshold tolerance to consider singular values as non-zero This is required by some methods like Rank() or Solve(), which is not available yet Non-zero values are checed as sing_val > rel_tol * max_sing_val. More...
|
|
virtual std::size_t | Rank ()=0 |
| Rank of the provided array Calculates and returns the rank of the array decomposed with the SVD. More...
|
|
virtual void | PrintInfo (std::ostream &rOStream) const =0 |
| SVD information Outputs the SVD class information. More...
|
|
static std::string | Name () |
| Name of the SVD Returns a string containing the name of the current SVD decomposition. More...
|
|
◆ DataType
template<class TDenseSpaceType >
◆ MatrixType
template<class TDenseSpaceType >
◆ VectorType
template<class TDenseSpaceType >
◆ DenseSingularValueDecomposition()
template<class TDenseSpaceType >
◆ ~DenseSingularValueDecomposition()
template<class TDenseSpaceType >
◆ Compute() [1/2]
template<class TDenseSpaceType >
Compute the SVD Computes the Singular Value Decomposition (SVD) of the given imput matrix.
- Parameters
-
rInputMatrix | Matrix to compute the SVD decomposition |
Settings | Settings for the SVD decomposition |
◆ Compute() [2/2]
template<class TDenseSpaceType >
Compute the SVD Computes the Singular Value Decomposition (SVD) of the given input matrix.
- Parameters
-
rInputMatrix | Matrix to compute the SVD decomposition |
rVectorS | Vector containing the singular values (sorted from the largest one to smallest one) |
rMatrixU | Left singular vectors matrix |
rMatrixV | Right singular vectors matrix |
Settings | Settings for the SVD decomposition |
◆ KRATOS_CLASS_POINTER_DEFINITION()
template<class TDenseSpaceType >
Definition of the shared pointer of the class.
◆ MatrixU()
template<class TDenseSpaceType >
Left singular vectors matrix getter If computed, this method sets the left singular vectors matrix in the provided array.
- Parameters
-
rMatrixU | Left singular vectors matrix |
◆ MatrixV()
template<class TDenseSpaceType >
Right singular vectors matrix getter If computed, this method sets the right singular vectors matrix in the provided array Note that this method is understood to return V (not its transpose). This means that this matrix needs to be transposed in order to reconstruct the input matrix.
- Parameters
-
◆ Name()
template<class TDenseSpaceType >
Name of the SVD Returns a string containing the name of the current SVD decomposition.
- Returns
- std::string Name of the SVD decomposition
◆ NonZeroSingularValues()
template<class TDenseSpaceType >
◆ PrintInfo()
template<class TDenseSpaceType >
◆ Rank()
template<class TDenseSpaceType >
◆ SetThreshold()
template<class TDenseSpaceType >
◆ SingularValues()
template<class TDenseSpaceType >
Singular values vector getter This method sets the singular values vector in the provided array.
- Parameters
-
The documentation for this class was generated from the following file: