MFEM v4.7.0
Finite element discretization library
|
Class for Singular Value Decomposition of a DenseMatrix. More...
#include <densemat.hpp>
Public Member Functions | |
MFEM_DEPRECATED | DenseMatrixSVD (DenseMatrix &M, bool left_singular_vectors=false, bool right_singular_vectors=false) |
Constructor for the DenseMatrixSVD. | |
MFEM_DEPRECATED | DenseMatrixSVD (int h, int w, bool left_singular_vectors=false, bool right_singular_vectors=false) |
Constructor for the DenseMatrixSVD. | |
DenseMatrixSVD (DenseMatrix &M, char left_singular_vectors='A', char right_singular_vectors='A') | |
Constructor for the DenseMatrixSVD. | |
DenseMatrixSVD (int h, int w, char left_singular_vectors='A', char right_singular_vectors='A') | |
Constructor for the DenseMatrixSVD. | |
void | Eval (DenseMatrix &M) |
Evaluate the SVD. | |
Vector & | Singularvalues () |
Return singular values. | |
real_t | Singularvalue (int i) |
Return specific singular value. | |
DenseMatrix & | LeftSingularvectors () |
Return left singular vectors. | |
DenseMatrix & | RightSingularvectors () |
Return right singular vectors. | |
~DenseMatrixSVD () | |
Class for Singular Value Decomposition of a DenseMatrix.
Singular Value Decomposition (SVD) of a DenseMatrix with the use of the DGESVD driver from LAPACK.
Definition at line 955 of file densemat.hpp.
mfem::DenseMatrixSVD::DenseMatrixSVD | ( | DenseMatrix & | M, |
bool | left_singular_vectors = false, | ||
bool | right_singular_vectors = false ) |
Constructor for the DenseMatrixSVD.
Constructor for the DenseMatrixSVD with LAPACK. The parameters for the left and right singular vectors can be choosen according to the parameters for the LAPACK DGESVD.
[in] | M | matrix to set the size to n=M.Height(), m=M.Width() |
[in] | left_singular_vectors | optional parameter to define if first left singular vectors should be computed |
[in] | right_singular_vectors | optional parameter to define if first right singular vectors should be computed |
Definition at line 4445 of file densemat.cpp.
mfem::DenseMatrixSVD::DenseMatrixSVD | ( | int | h, |
int | w, | ||
bool | left_singular_vectors = false, | ||
bool | right_singular_vectors = false ) |
Constructor for the DenseMatrixSVD.
Constructor for the DenseMatrixSVD with LAPACK. The parameters for the left and right singular vectors can be choosen according to the parameters for the LAPACK DGESVD.
[in] | h | height of the matrix |
[in] | w | width of the matrix |
[in] | left_singular_vectors | optional parameter to define if first left singular vectors should be computed |
[in] | right_singular_vectors | optional parameter to define if first right singular vectors should be computed |
Definition at line 4456 of file densemat.cpp.
mfem::DenseMatrixSVD::DenseMatrixSVD | ( | DenseMatrix & | M, |
char | left_singular_vectors = 'A', | ||
char | right_singular_vectors = 'A' ) |
Constructor for the DenseMatrixSVD.
Constructor for the DenseMatrixSVD with LAPACK. The parameters for the left and right singular vectors can be choosen according to the parameters for the LAPACK DGESVD.
[in] | M | matrix to set the size to n=M.Height(), m=M.Width() |
[in] | left_singular_vectors | optional parameter to define which left singular vectors should be computed |
[in] | right_singular_vectors | optional parameter to define which right singular vectors should be computed |
Options for computation of singular vectors:
'A': All singular vectors are computed (default)
'S': The first min(n,m) singular vectors are computed
'N': No singular vectors are computed
Definition at line 4467 of file densemat.cpp.
mfem::DenseMatrixSVD::DenseMatrixSVD | ( | int | h, |
int | w, | ||
char | left_singular_vectors = 'A', | ||
char | right_singular_vectors = 'A' ) |
Constructor for the DenseMatrixSVD.
Constructor for the DenseMatrixSVD with LAPACK. The parameters for the left and right singular vectors can be choosen according to the parameters for the LAPACK DGESVD.
[in] | h | height of the matrix |
[in] | w | width of the matrix |
[in] | left_singular_vectors | optional parameter to define which left singular vectors should be computed |
[in] | right_singular_vectors | optional parameter to define which right singular vectors should be computed |
Options for computation of singular vectors:
'A': All singular vectors are computed (default)
'S': The first min(n,m) singular vectors are computed
'N': No singular vectors are computed
Definition at line 4478 of file densemat.cpp.
mfem::DenseMatrixSVD::~DenseMatrixSVD | ( | ) |
Definition at line 4553 of file densemat.cpp.
void mfem::DenseMatrixSVD::Eval | ( | DenseMatrix & | M | ) |
Evaluate the SVD.
Call of the DGESVD driver from LAPACK for the DenseMatrix M. The singular vectors are computed according to the setup in the call of the constructor.
[in] | M | DenseMatrix the SVD should be evaluated for |
Definition at line 4506 of file densemat.cpp.
|
inline |
Return left singular vectors.
Definition at line 1086 of file densemat.hpp.
|
inline |
Return right singular vectors.
Definition at line 1093 of file densemat.hpp.
|
inline |
Return specific singular value.
Definition at line 1079 of file densemat.hpp.
|
inline |
Return singular values.
Definition at line 1072 of file densemat.hpp.