Singular value decomposition of a rectangular matrix. More...
Public Member Functions | |
SVD (const scalarRectangularMatrix &A, const scalar minCondition=0) | |
Construct from a rectangular Matrix. More... | |
const scalarRectangularMatrix & | U () const |
Return U. More... | |
const scalarRectangularMatrix & | V () const |
Return the square matrix V. More... | |
const scalarDiagonalMatrix & | S () const |
Return the singular values. More... | |
const scalarRectangularMatrix & | VSinvUt () const |
Return VSinvUt (the pseudo inverse) More... | |
label | nZeros () const |
Return the number of zero singular values. More... | |
scalar | minNonZeroS () const |
Return the minimum non-zero singular value. More... | |
Private Member Functions | |
SVD (const SVD &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const SVD &) |
Disallow default bitwise assignment. More... | |
template<class T > | |
const T | sign (const T &a, const T &b) |
Private Attributes | |
scalarRectangularMatrix | U_ |
Rectangular matrix with the same dimensions as the input. More... | |
scalarRectangularMatrix | V_ |
Square matrix V. More... | |
DiagonalMatrix< scalar > | S_ |
The singular values. More... | |
scalarRectangularMatrix | VSinvUt_ |
The matrix product V S^(-1) U^T. More... | |
label | nZeros_ |
The number of zero singular values. More... | |
Singular value decomposition of a rectangular matrix.
SVD | ( | const scalarRectangularMatrix & | A, |
const scalar | minCondition = 0 |
||
) |
Construct from a rectangular Matrix.
Definition at line 33 of file SVD.C.
References A(), Foam::constant::universal::c, Foam::endl(), f(), Foam::findMax(), forAll, g, Foam::constant::universal::h, Foam::inv(), k, Matrix::m(), Foam::mag(), Foam::max(), Foam::min(), Foam::multiply(), Matrix::n(), SVD::nZeros_, s(), SVD::S_, SVD::sign(), Foam::sqrt(), Foam::sqrtSumSqr(), Matrix::T(), SVD::U_, SVD::V_, SVD::VSinvUt_, WarningInFunction, x, and y.
|
private |
Disallow default bitwise assignment.
Definition at line 29 of file SVDI.H.
References Foam::constant::physicoChemical::b.
Referenced by SVD::SVD().
|
inline |
|
inline |
|
inline |
Return the singular values.
Definition at line 47 of file SVDI.H.
Referenced by CentredFitSnGradData< Polynomial >::calcFit().
|
inline |
Return VSinvUt (the pseudo inverse)
Definition at line 52 of file SVDI.H.
Referenced by CentredFitSnGradData< Polynomial >::calcFit(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::calcFit(), and Foam::SVDinv().
|
inline |
|
inline |
|
private |
Rectangular matrix with the same dimensions as the input.
Definition at line 57 of file SVD.H.
Referenced by SVD::SVD().
|
private |
|
private |
|
private |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.