Bachelor's degree final project  v1.0
Faculty of Mathematics, University of Barcelona
Defines | Typedefs | Functions
src/include/linear_solve.h File Reference

Linear solve header file. More...

#include "QR_matrix.h"
#include "LU_matrix.h"
+ Include dependency graph for linear_solve.h:
+ This graph shows which files directly or indirectly include this file:

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 ()

Detailed Description

Linear solve header file.

Author:
Joan Gimeno
Date:
22/11/2013 (start)
Version:
1.0

This file contains the header for ::linear_solve


Define Documentation

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 Documentation

typedef void*(* solve_ptr)(size_t, size_t, double **const, double *const, double *const, double)