MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Namespaces | Functions
matrix_qr.h File Reference
#include <vector>
#include <algorithm>
#include <iostream>
#include "math/defines.h"
#include "math/matrix.h"
Include dependency graph for matrix_qr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  math
 Vector, Matrix, basic operations, etc.
 
namespace  math::internal
 Math internals.
 

Functions

template<typename T >
void math::internal::matrix_apply_givens_column (T *mat, int rows, int cols, int givens_i, int givens_k, T const &givens_c, T const &givens_s)
 Applies a Givens rotation for columns (givens_i, givens_k) by only rotating the required set of columns in-place.
 
template<typename T >
void math::internal::matrix_apply_givens_row (T *mat, int, int cols, int givens_i, int givens_k, T const &givens_c, T const &givens_s)
 Applies a transposed Givens rotation for rows (givens_i, givens_k) by only rotating the required set of rows in-place.
 
template<typename T >
void math::internal::matrix_givens_rotation (T const &alpha, T const &beta, T *givens_c, T *givens_s, T const &epsilon)
 Calculates the Givens rotation coefficients c and s by solving [alpha beta] [c s;-c s] = [sqrt(alpha^2+beta^2) 0].
 
template<typename T , int M, int N>
void math::matrix_qr (Matrix< T, M, N > const &mat_a, Matrix< T, M, M > *mat_q, Matrix< T, M, N > *mat_r, T const &epsilon=T(1e-12))
 Matrix QR decomposition for compile-time fixed-size matrices.
 
template<typename T >
void math::matrix_qr (T const *mat_a, int rows, int cols, T *mat_q, T *mat_r, T const &epsilon=T(1e-12))
 Calculates a QR decomposition for a given matrix A.