RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
solve.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 
26 #ifndef SOLVE_H_
27 #define SOLVE_H_
28 
29 #include "matrix.h"
30 #include "pseudo_inverse.h"
31 
47 int8_t solve(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m],
48  matrix_t x_sol[n], enum ALGORITHM algo);
49 
64 int8_t solve_householder(uint8_t m, uint8_t n, matrix_t A[][n],
65  matrix_t b[m],
66  matrix_t x_sol[n]);
67 
82 int8_t solve_givens(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m],
83  matrix_t x_sol[n]);
84 
100 int8_t solve_lu_decomp(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m],
101  matrix_t x_sol[n]);
102 #endif /* SOLVE_H_ */
solve_givens
int8_t solve_givens(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m], matrix_t x_sol[n])
Solve an (m n) linear system Ax = b, using the Givens algorithm.
Definition: solve.c:102
solve_lu_decomp
int8_t solve_lu_decomp(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m], matrix_t x_sol[n])
Solve an (m n) linear system Ax = b, using the Gaussian Elimination with pivoting algorithm.
Definition: solve.c:124
pseudo_inverse.h
Compute the pseudo-inverse of a matrix.
solve_householder
int8_t solve_householder(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m], matrix_t x_sol[n])
Solve an (m n) linear system Ax = b, using the Householder algorithm.
Definition: solve.c:77
matrix.h
Matrix computations.
ALGORITHM
ALGORITHM
Possible algorithms to compute the pseudo-inverse matrix.
Definition: pseudo_inverse.h:30
solve
int8_t solve(uint8_t m, uint8_t n, matrix_t A[][n], matrix_t b[m], matrix_t x_sol[n], enum ALGORITHM algo)
Solve an (m n) linear system Ax = b by using the Moore–Penrose, Householder, or the Givens algorithm...
Definition: solve.c:35
matrix_t
#define matrix_t
Define the data type of the matrix elements.
Definition: matrix.h:38