|
RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
|
int8_t qr_householder_decomp(uint8_t m, uint8_t n, matrix_t A[][n], uint8_t q_col_num, matrix_t Q[][q_col_num], bool reduced)
Computes the QR decomposition of the matrix A by using the Householder algorithm.
Compute the pseudo-inverse of a matrix.
Householder algorithm for the QR-decomposition.
QR_ALGORITHM
Possible algorithms to compute the QR-decomposition of a matrix.
int8_t qr_get_pinv(uint8_t m, uint8_t n, matrix_t A[m][n], matrix_t pinv_A[n][m], enum QR_ALGORITHM algo)
Calculate the pseudo inverse of a rectangular matrix using the QR decomposition.
Common definitions and implementations for the QR-decomposition. Provide necessary methods to constru...
void matrix_copy(uint8_t m, uint8_t n, matrix_t src_matrix[m][n], matrix_t dest_matrix[m][n])
Copy the elements of a matrix to another matrix.
int8_t qr_givens_decomp(uint8_t m, uint8_t n, matrix_t A[][n], uint8_t q_col_num, matrix_t Q[][q_col_num], bool reduced)
Computes the QR decomposition of the matrix A by using the Givens algorithm.
void matrix_get_inv_upp_triang(uint8_t m, uint8_t n, matrix_t U[][n], matrix_t inv_U[][m])
Computes the inverse an upper triangular matrix.
#define matrix_t
Define the data type of the matrix elements.
void matrix_in_place_transpose(uint8_t m, matrix_t matrix[][m])
Computes the in-place transpose of a matrix.
Givens algorithm for the QR-decomposition. Provide necessary methods to construct Q- and R- matrices ...
void matrix_mul(uint8_t a_line_num, uint8_t a_col_num, matrix_t a_matrix[a_line_num][a_col_num], uint8_t b_line_num, uint8_t b_col_num, matrix_t b_matrix[b_line_num][b_col_num], matrix_t dest_matrix[a_line_num][b_col_num])
Compute the multiplication of two matrices.