SourcePro® 2022.1 |
SourcePro® API Reference Guide |
Encapsulates a complete orthogonal decomposition. More...
#include <rw/lapack/co.h>
Public Member Functions | |
RWCODecomp () | |
RWCODecomp (const RWCODecomp< TypeT, QRCalc > &A) | |
RWCODecomp (const RWQRDecomp< TypeT, QRCalc > &A, double tol=0) | |
RWCODecomp (const RWGenMat< TypeT > &A, double tol=0) | |
unsigned | cols () const |
void | factor (const RWQRDecomp< TypeT, QRCalc > &A, double tol=0) |
void | factor (const RWGenMat< TypeT > &A, double tol=0) |
RWGenMat< TypeT > | P () const |
RWMathVec< TypeT > | PTx (const RWMathVec< TypeT > &x) const |
RWMathVec< TypeT > | Px (const RWMathVec< TypeT > &x) const |
RWGenMat< TypeT > | Q () const |
RWMathVec< TypeT > | QTx (const RWMathVec< TypeT > &x) const |
RWMathVec< TypeT > | Qx (const RWMathVec< TypeT > &x) const |
unsigned | rank () const |
unsigned | rows () const |
RWUpperTriMat< TypeT > | T () const |
RWMathVec< TypeT > | Tinvx (const RWMathVec< TypeT > &x) const |
RWMathVec< TypeT > | TTinvx (const RWMathVec< TypeT > &x) const |
RWMathVec< TypeT > | TTx (const RWMathVec< TypeT > &x) const |
RWMathVec< TypeT > | Tx (const RWMathVec< TypeT > &x) const |
RWGenMat< TypeT > | Z () const |
RWMathVec< TypeT > | ZTx (const RWMathVec< TypeT > &x) const |
RWMathVec< TypeT > | Zx (const RWMathVec< TypeT > &x) const |
The class RWCODecomp encapsulates a complete orthogonal decomposition. A complete orthogonal decomposition decomposes a general rectangular matrix A into the form:
\[ AP = Q \begin{bmatrix} T & 0\\ 0 & 0 \end{bmatrix} Z^{\prime} \]
where P is a permutation, Q and Z are orthogonal matrices, and T is an upper triangular matrix. This transformation is closely related to the QR transformation. The difference is that an extra orthogonal transformation, Z, is applied to zero out the columns to the right of T.
This decomposition is commonly used in the solution of least squares problems. The implementation of the Linear Algebra Module class RWLeastSqQR uses the complete orthogonal transformation.
RWCODecomp< TypeT, QRCalc >::RWCODecomp | ( | ) |
Default constructor. Builds a decomposition of size 0 x 0.
RWCODecomp< TypeT, QRCalc >::RWCODecomp | ( | const RWCODecomp< TypeT, QRCalc > & | A | ) |
Copy constructor. References the data in the original decomposition for efficiency.
RWCODecomp< TypeT, QRCalc >::RWCODecomp | ( | const RWQRDecomp< TypeT, QRCalc > & | A, |
double | tol = 0 |
||
) |
Builds a complete orthogonal representation of the matrix represented by the QR decomposition. Entries along the diagonal of the R factor of the QR decomposition that are smaller in magnitude than tol are treated as 0.
RWCODecomp< TypeT, QRCalc >::RWCODecomp | ( | const RWGenMat< TypeT > & | A, |
double | tol = 0 |
||
) |
Builds a complete orthogonal decomposition of A. Entries along the diagonal of T that would be smaller in magnitude than tol are treated as 0.
|
inline |
Returns the number of columns in the matrix that the decomposition represents.
void RWCODecomp< TypeT, QRCalc >::factor | ( | const RWQRDecomp< TypeT, QRCalc > & | A, |
double | tol = 0 |
||
) |
Builds a complete orthogonal representation of the matrix represented by the QR decomposition. Entries along the diagonal of the R factor of the QR decomposition that are smaller in magnitude than tol are treated as 0. The current contents of the decomposition are lost.
void RWCODecomp< TypeT, QRCalc >::factor | ( | const RWGenMat< TypeT > & | A, |
double | tol = 0 |
||
) |
Builds a complete orthogonal decomposition of A. Entries along the diagonal of T that would be smaller in magnitude than tol are treated as 0. The current contents of the decomposition are lost.
|
inline |
Computes an explicit representation of the permutation matrix.
|
inline |
Computes the inner product of the permutation, or its transpose, and the vector x.
|
inline |
Computes the inner product of the permutation, or its transpose, and the vector x.
|
inline |
Computes an explicit representation of the orthogonal matrix Q
.
|
inline |
Computes the inner product of the orthogonal matrix Q
, or its (conjugate) transpose, and the vector x.
|
inline |
Computes the inner product of the orthogonal matrix Q
, or its (conjugate) transpose, and the vector x.
|
inline |
Returns the rank of the matrix that the decomposition represents. The rank is also the number of rows and columns in the factor T.
|
inline |
Returns the number of rows in the matrix that the decomposition represents.
RWUpperTriMat<TypeT> RWCODecomp< TypeT, QRCalc >::T | ( | ) | const |
Returns an explicit representation of the triangular matrix T
.
RWMathVec<TypeT> RWCODecomp< TypeT, QRCalc >::Tinvx | ( | const RWMathVec< TypeT > & | x | ) | const |
Computes the inner product of the matrix T
, its (conjugate) transpose, its inverse, or its (conjugate) transpose inverse, and the vector x.
RWMathVec<TypeT> RWCODecomp< TypeT, QRCalc >::TTinvx | ( | const RWMathVec< TypeT > & | x | ) | const |
Computes the inner product of the matrix T
, its (conjugate) transpose, its inverse, or its (conjugate) transpose inverse, and the vector x.
RWMathVec<TypeT> RWCODecomp< TypeT, QRCalc >::TTx | ( | const RWMathVec< TypeT > & | x | ) | const |
Computes the inner product of the matrix T
, its (conjugate) transpose, its inverse, or its (conjugate) transpose inverse, and the vector x.
RWMathVec<TypeT> RWCODecomp< TypeT, QRCalc >::Tx | ( | const RWMathVec< TypeT > & | x | ) | const |
Computes the inner product of the matrix T
, its (conjugate) transpose, its inverse, or its (conjugate) transpose inverse, and the vector x.
RWGenMat<TypeT> RWCODecomp< TypeT, QRCalc >::Z | ( | ) | const |
Computes an explicit representation of the orthogonal matrix Z
.
RWMathVec<TypeT> RWCODecomp< TypeT, QRCalc >::ZTx | ( | const RWMathVec< TypeT > & | x | ) | const |
Computes the inner product of the orthogonal matrix Z
, or its (conjugate) transpose, and the vector x.
RWMathVec<TypeT> RWCODecomp< TypeT, QRCalc >::Zx | ( | const RWMathVec< TypeT > & | x | ) | const |
Computes the inner product of the orthogonal matrix Z
, or its (conjugate) transpose, and the vector x.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |