![]() |
Bachelor's degree final project
v1.0
Faculty of Mathematics, University of Barcelona
|
Linear solve header file. More...
Go to the source code of this file.
Defines | |
#define | SOLVE_WITH_LU |
Pointer to a solve a linear system with LU decomposition. | |
#define | SOLVE_WITH_QR |
Pointer to a solve a linear system with QR decomposition. | |
#define | _SOLVE_PROTOTYPE |
Prototype of a function pointer that solves a linear system. | |
Typedefs | |
typedef void *(* | solve_ptr )(size_t, size_t, double **const, double *const, double *const, double) |
Functions | |
void | forward_substitution_ones (size_t n, double **const L, double *const x, double *const b) |
Forward substitution for lower triangular matrices (Lx = b) where the diagonal of L are 1's. | |
void * | forward_substitution (size_t n, double **const L, double *const x, double *const b, double tol) |
Forward substitution for lower triangular matrices (Lx = b) | |
void * | back_substitution (size_t n, double **const U, double *const x, double *const b, double tol) |
Back substitution for upper triangular matrices (Ux = b) | |
void * | solve_qr (size_t m, size_t n, double **const A, double *const x, double *const b, double tol) |
QR solve linear system (QRx = b) | |
void * | solve_lu (size_t m, size_t n, double **const A, double *const x, double *const b, double tol) |
LU solve linear system (LUx = b) | |
solve_ptr | get_solve_with_lu () |
solve_ptr | get_solve_with_qr () |
Linear solve header file.
This file contains the header for ::linear_solve
#define _SOLVE_PROTOTYPE |
Prototype of a function pointer that solves a linear system.
#define SOLVE_WITH_LU |
Pointer to a solve a linear system with LU decomposition.
#define SOLVE_WITH_QR |
Pointer to a solve a linear system with QR decomposition.
typedef void*(* solve_ptr)(size_t, size_t, double **const, double *const, double *const, double) |