![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Defines the QR decomposition algorithm of a square matrix. More...
#include <DecompQR.hh>
Public Member Functions | |
| DecompQR () | |
| Default constructor, initilizes an empty matrix of dimension 0x0. More... | |
| DecompQR (const std::vector< std::vector< T >> &mat) | |
| Std constructor, sets the underlying std matrix. More... | |
| DecompQR (const DecompQR &decQR) | |
| Copy constructor. More... | |
| DecompQR & | operator= (const DecompQR &decQR) |
| Equality operator. More... | |
| ~DecompQR () | |
| Destructor. More... | |
| void | DecomposeGramSchmidt (const std::vector< std::vector< T >> &mat) |
| Decomposes a square matrix into a parity matrix P, an orthogonal matrix Q and a right triangular matrix R. More... | |
| T | Determinant () |
| Returns the determinant of the decomposed matrix. More... | |
| std::vector< std::vector< T > > | NewMatrix (size_t m, size_t n) |
| Returns a matrix of m rows and n columns. More... | |
| T | DotProduct (const std::vector< T > &a, const std::vector< T > &b) |
| Returns the dot produt of two vectors. More... | |
| const std::vector< std::vector < T > > & | Q () |
| Gets and returns the lower triangular matrix. More... | |
| const std::vector< std::vector < T > > & | R () |
| Gets and returns the upper triangular matrix. More... | |
Private Attributes | |
| std::vector< std::vector< T > > | _Q |
| Q Matrix. More... | |
| std::vector< std::vector< T > > | _R |
| R Matrix. More... | |
Defines the QR decomposition algorithm of a square matrix.
The matrices Q and R are such that
with
an orthogonal matrix;
an upper triangular matrix. Default constructor, initilizes an empty matrix of dimension 0x0.
Std constructor, sets the underlying std matrix.
| void DecompQR< T >::DecomposeGramSchmidt | ( | const std::vector< std::vector< T >> & | mat | ) |
Decomposes a square matrix into a parity matrix P, an orthogonal matrix Q and a right triangular matrix R.
| mat | Input square matrix |
| T DecompQR< T >::Determinant | ( | ) |
Returns the determinant of the decomposed matrix.
| T DecompQR< T >::DotProduct | ( | const std::vector< T > & | a, |
| const std::vector< T > & | b | ||
| ) |
Returns the dot produt of two vectors.
| a | First vector |
| b | Second vector |
| std::vector< std::vector< T > > DecompQR< T >::NewMatrix | ( | size_t | m, |
| size_t | n | ||
| ) |
Returns a matrix of m rows and n columns.
| m | Number of rows |
| n | Number of coQRmns |
Equality operator.
|
inline |
Gets and returns the lower triangular matrix.
|
inline |
Gets and returns the upper triangular matrix.
1.8.6