RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
qr_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
3  * 2020 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
23 #ifndef QR_COMMON_H_
24 #define QR_COMMON_H_
25 
26 #include <inttypes.h>
27 #include "matrix.h"
28 
33  QR_Householder, QR_Givens
34 };
35 
46 void qr_common_backward_subst(uint8_t m, uint8_t n, matrix_t U[][n],
47  matrix_t b[m], matrix_t x_sol[m]);
59 void qr_common_get_reduced_QR(uint8_t m, uint8_t n, matrix_t Q[m][m],
60  matrix_t R[m][n], matrix_t red_Q[m][n], matrix_t red_R[n][n]);
61 
62 #endif /* QR_COMMON_H_ */
QR_ALGORITHM
QR_ALGORITHM
Possible algorithms to compute the QR-decomposition of a matrix.
Definition: qr_common.h:32
qr_common_get_reduced_QR
void qr_common_get_reduced_QR(uint8_t m, uint8_t n, matrix_t Q[m][m], matrix_t R[m][n], matrix_t red_Q[m][n], matrix_t red_R[n][n])
Compute the reduced form of the QR-decomposition algorithm.
Definition: qr_common.c:59
qr_common_backward_subst
void qr_common_backward_subst(uint8_t m, uint8_t n, matrix_t U[][n], matrix_t b[m], matrix_t x_sol[m])
Implements the backward substitution algorithm.
Definition: qr_common.c:28
matrix.h
Matrix computations.
matrix_t
#define matrix_t
Define the data type of the matrix elements.
Definition: matrix.h:38