STK++ 0.9.13
|
{ More...
#include <STK_lapack_Qr.h>
Public Types | |
typedef IQr< Qr > | Base |
Public Member Functions | |
Qr (ArrayXX const &data, bool ref=false) | |
Default constructor. | |
template<class Derived > | |
Qr (ArrayBase< Derived > const &data) | |
Constructor. | |
Qr (Qr const &decomp) | |
Copy constructor. | |
virtual | ~Qr () |
virtual destructor | |
virtual Qr * | clone () const |
clone pattern | |
Qr & | operator= (Qr const &decomp) |
Operator = : overwrite the Qr with decomp. | |
bool | runImpl () |
Run qr decomposition Launch geqrf LAPACK routine to perform the qr decomposition. | |
![]() | |
virtual | ~IQr () |
virtual destructor | |
IQr & | operator= (IQr const &decomp) |
Operator = : overwrite the this with decomp. | |
bool | isCompQ () const |
int | rank () const |
Array const & | Q () const |
give the matrix Q of the QR decomposition. | |
ArrayUpperTriangularXX const & | R () const |
give the matrix R of the QR decomposition. | |
void | setCompQ (bool compq) |
Set the compq_ flag. | |
virtual bool | run () |
Compute the QR decomposition. | |
void | compQ () |
Compute Q (to use after run). | |
void | popBackCols (int n=1) |
Delete the n last columns and update the QR decomposition. | |
void | eraseCol (int pos) |
Delete the column pos and update the QR decomposition. | |
void | pushBackCol (ColVector_ const &T) |
Add a column with value T and update th QR decomposition. | |
void | insertCol (ColVector_ const &T, int pos) |
Add a column with value T at the position pos and update the QR decomposition. | |
void | setData (ExprBase< OtherDerived > const &data) |
overloading of setData. | |
![]() | |
String const & | error () const |
get the last error message. | |
![]() | |
Derived & | asDerived () |
static cast : return a reference of this with a cast to the derived class. | |
Derived const & | asDerived () const |
static cast : return a const reference of this with a cast to the derived class. | |
Derived * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
Derived const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
Derived * | clone () const |
create a leaf using the copy constructor of the Derived class. | |
Derived * | clone (bool isRef) const |
create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
Private Member Functions | |
bool | computeQr (CArrayXX &a, CVectorX &tau) |
private method for computing the Qr decomposition using a CArrayXX array | |
Additional Inherited Members | |
![]() | |
typedef hidden::AlgebraTraits< Qr >::Array | Array |
typedef hidden::AlgebraTraits< Qr >::ColVector | ColVector |
typedef hidden::AlgebraTraits< Qr >::RowVector | RowVector |
![]() | |
IQr (Array const &Q, bool ref=false) | |
Constructor. | |
IQr (ExprBase< DerivedExpr > const &Q) | |
Constructor. | |
IQr (IQr const &decomp) | |
Copy constructor. | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
![]() | |
Array | Q_ |
Q Array of the QR decomposition. | |
ArrayUpperTriangularXX | R_ |
R Array of th QR decomposition. | |
bool | compq_ |
is Q computed ? | |
int | rank_ |
estimated rank_ of the matrix A | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
{
Qr computes the QR decomposition of a real matrix using the Lapack routine *geqrf.
Output:
Definition at line 87 of file STK_lapack_Qr.h.
Definition at line 90 of file STK_lapack_Qr.h.
Default constructor.
data | the matrix to decompose |
ref | true if we overwrite A |
Definition at line 97 of file STK_lapack_Qr.h.
Constructor.
data | reference on a matrix expression |
Definition at line 102 of file STK_lapack_Qr.h.
Copy constructor.
decomp | the decomposition to copy |
Definition at line 106 of file STK_lapack_Qr.h.
|
inlinevirtual |
clone pattern
Definition at line 110 of file STK_lapack_Qr.h.
private method for computing the Qr decomposition using a CArrayXX array
Definition at line 130 of file STK_lapack_Qr.h.
References computeQr(), STK::IRunnerBase::error(), STK::lapack::geqrf(), STK::IRunnerBase::msg_error_, STK::ICArray< Derived >::p_data(), STKERROR_1ARG, and STKERROR_NO_ARG.
Referenced by computeQr(), and runImpl().
Operator = : overwrite the Qr with decomp.
Definition at line 112 of file STK_lapack_Qr.h.
References STK::IQr< Qr >::operator=().
|
inline |
Run qr decomposition Launch geqrf LAPACK routine to perform the qr decomposition.
true
if no error occur, false
otherwise Definition at line 169 of file STK_lapack_Qr.h.
References computeQr(), STK::IQr< Qr >::Q_, STK::IQr< Qr >::R_, STK::IArray2D< Derived >::resize(), and STK::ICArray< Derived >::shift().