STK++ 0.9.13
|
The class Qr perform the QR decomposition of an ArrayXX. More...
#include <STK_Qr.h>
Public Types | |
typedef hidden::AlgebraTraits< Qr >::ColVector | ColVector |
typedef hidden::AlgebraTraits< Qr >::RowVector | RowVector |
typedef IQr< Qr > | Base |
Public Member Functions | |
Qr (ArrayXX const &A, bool ref=false) | |
Default constructor. | |
template<class Derived > | |
Qr (ExprBase< 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 () |
Compute 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 | |
void | qr () |
Compute the qr decomposition of the matrix Q_. | |
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 | |
The class Qr perform the QR decomposition of an ArrayXX.
typedef hidden::AlgebraTraits<Qr>::ColVector STK::Qr::ColVector |
typedef hidden::AlgebraTraits<Qr>::RowVector STK::Qr::RowVector |
|
inlinevirtual |
Operator = : overwrite the Qr with decomp.
Definition at line 125 of file STK_Qr.h.
References STK::IQr< Qr >::operator=().
|
inlineprivate |
Compute the qr decomposition of the matrix Q_.
Definition at line 138 of file STK_Qr.h.
References STK::applyLeftHouseholderVector(), STK::IArray2D< Derived >::beginRows(), STK::IArray2D< Derived >::endCols(), STK::IArray2D< Derived >::endRows(), STK::house(), STK::IQr< Qr >::Q_, STK::IQr< Qr >::R_, STK::IArray2D< Derived >::resize(), and STK::IArray2D< Derived >::row().
Referenced by runImpl().
|
inline |