TooN
Public Member Functions | List of all members
TooN::QR< Rows, Cols, Precision > Class Template Reference

Performs QR decomposition. More...

#include <QR.h>

Public Member Functions

template<int R, int C, class P , class B >
 QR (const Matrix< R, C, P, B > &m_)
 Construct the QR decomposition of a matrix. More...
 
const Matrix< Rows, Cols, Precision > & get_R ()
 Return R.
 
const Matrix< square_Size, square_Size, Precision, ColMajor > & get_Q ()
 Return Q.
 

Detailed Description

template<int Rows = Dynamic, int Cols = Rows, typename Precision = double>
class TooN::QR< Rows, Cols, Precision >

Performs QR decomposition.

Warning
this will only work if the number of columns is greater than the number of rows!

The QR decomposition operates on a matrix A. In general:

\[ A = QR \]

Constructor & Destructor Documentation

◆ QR()

template<int Rows = Dynamic, int Cols = Rows, typename Precision = double>
template<int R, int C, class P , class B >
TooN::QR< Rows, Cols, Precision >::QR ( const Matrix< R, C, P, B > &  m_)
inline

Construct the QR decomposition of a matrix.

This initialises the class, and performs the decomposition immediately.

Parameters
mThe matrix to decompose

The documentation for this class was generated from the following file: