#include </home/runner/work/tfel/tfel/include/TFEL/Math/QR/QRDecomp.hxx>
|
|
template<typename MatrixType, typename VectorType> |
| void | exe (MatrixType &a, VectorType &rdiag, VectorType &beta) |
|
template<typename VectorType, typename MatrixType> |
| void | householder_product (VectorType &v, const MatrixType &a, const VectorType &beta, const index_type< MatrixType > c) |
|
template<typename VectorType, typename MatrixType> |
| void | tq_product (VectorType &v, const MatrixType &a, const VectorType &beta) |
|
template<typename VectorType, typename MatrixType> |
| void | back_substitute (VectorType &v, const MatrixType &a, const VectorType &d, const numeric_type< MatrixType > e) |
|
template<typename VectorType, typename MatrixType> |
| void | back_substitute (VectorType &v, const MatrixType &a, const VectorType &d) |
|
| template<typename MatrixType, typename VectorType> |
| static TFEL_MATH_INLINE2 void | exe (MatrixType &, VectorType &, VectorType &) |
| template<typename VectorType, typename MatrixType> |
| static TFEL_MATH_INLINE2 void | tq_product (VectorType &, const MatrixType &, const VectorType &) |
| template<typename VectorType, typename MatrixType> |
| static TFEL_MATH_INLINE2 void | back_substitute (VectorType &, const MatrixType &, const VectorType &, const numeric_type< MatrixType >) |
| template<typename VectorType, typename MatrixType> |
| static TFEL_MATH_INLINE2 void | back_substitute (VectorType &, const MatrixType &, const VectorType &) |
structure in charge of computing the QR decomposition of a matrix. No column permutation is performed.
◆ back_substitute() [1/2]
template<typename VectorType, typename MatrixType>
| TFEL_MATH_INLINE2 void tfel::math::QRDecomp::back_substitute |
( |
VectorType & | , |
|
|
const MatrixType & | , |
|
|
const VectorType & | ) |
|
static |
- Parameters
-
| [in,out] | v | : vector of size greater than or equal to the number of columns of a (e.g. the result of tq_product) |
| [in] | a | : decomposed matrix |
| [in] | d | : diagonal element of the matrix |
◆ back_substitute() [2/2]
template<typename VectorType, typename MatrixType>
| TFEL_MATH_INLINE2 void tfel::math::QRDecomp::back_substitute |
( |
VectorType & | , |
|
|
const MatrixType & | , |
|
|
const VectorType & | , |
|
|
const numeric_type< MatrixType > | ) |
|
static |
- Parameters
-
| [in,out] | v | : vector of size greater than or equal to the number of columns of a (e.g. the result of tq_product) |
| [in] | a | : decomposed matrix |
| [in] | d | : diagonal element of the matrix |
| [in] | e | : precision |
◆ enorm()
template<typename MatrixType>
Compute the norm of the cth column of matrix m, starting from b to e.
- Parameters
-
| [in] | m | : matrix |
| [in] | c | : column number |
| [in] | b | : starting row |
| [in] | e | : past-the end row |
◆ exe()
template<typename MatrixType, typename VectorType>
| TFEL_MATH_INLINE2 void tfel::math::QRDecomp::exe |
( |
MatrixType & | , |
|
|
VectorType & | , |
|
|
VectorType & | ) |
|
static |
Compute the QR decomposition of a matrix.
- Parameters
-
| [in,out] | m | : the matrix to be decomposed |
| [out] | rdiag | : diagonal values of the R matrix |
| [out] | beta | : half of the square of the norm of the householder vectors The decomposition is done in-place |
This function uses householder transformations to compute a qr factorization of the m by n matrix a. that is, one determines an orthogonal matrix q and an upper trapezoidal matrix r such that a = q*r. the householder transformation for column k, k = 1,2,...,min(m,n), is of the form: [ I - (1/beta(k))*v*v ] where v has zeros in the first k-1 positions. If the components k to m of the column k, after the k-1 previous transformations, are null, beta(k) is null and the transformation is the identity.
◆ householder_product()
template<typename VectorType, typename MatrixType>
| TFEL_MATH_INLINE2 void tfel::math::QRDecomp::householder_product |
( |
VectorType & | , |
|
|
const MatrixType & | , |
|
|
const VectorType & | , |
|
|
const index_type< MatrixType > | ) |
|
staticprotected |
do the product of a householder matrix, stored in the kth column of the matrix a, to a vector.
- Parameters
-
| [in] | v | : vector to be multiplied |
| [in] | a | : decomposed matrix which stores a bunch of householder transformations in its lower diagonal part |
| [in] | beta | : square of norm of the householder vectors |
| [in] | c | : column index |
◆ tq_product()
template<typename VectorType, typename MatrixType>
| TFEL_MATH_INLINE2 void tfel::math::QRDecomp::tq_product |
( |
VectorType & | , |
|
|
const MatrixType & | , |
|
|
const VectorType & | ) |
|
static |
do the product of the transpose q matrix which is stored in a decomposed matrix a to a vector.
- Parameters
-
| [in] | v | : vector to be multiplied |
| [in] | a | : decomposed matrix which stores a bunch of householder transformations in its lower diagonal part |
| [in] | beta | : half of the square of the norm of the householder vectors |
The documentation for this struct was generated from the following files: