Bachelor's degree final project  v1.0
Faculty of Mathematics, University of Barcelona
Defines | Functions
src/LU_matrix.c File Reference

Functions for computing LU decomposition of any square matrix. More...

#include "LU_matrix.h"
+ Include dependency graph for LU_matrix.c:

Defines

#define _OPENMP_LU_DIMENSION   1e2
 Minimum value for using the openmp library in LU decomposition.

Functions

double max_row (size_t m, double **const A, size_t idx, size_t *const row)
 Find the maximum value of a column based on the same row index.
double max_col (size_t n, double **const A, size_t idx, size_t *const col)
 Find the first maximum value of a column based on the same column index.
double max_row_col (size_t m, size_t n, double **const A, size_t idx, size_t *const row, size_t *const col)
 Find the maximum value of a column and row based on the same column and row index.
void swap_bit (size_t i, size_t j, size_t *const x, size_t *const y)
 Swap two values from vector x to y.
void swap_row (size_t row1, size_t row2, size_t n, double **const A, double **const B)
 Swap two rows from matrix A to B based on the same minimum row index.
void swap_col (size_t col1, size_t col2, size_t m, double **const A, double **const B)
 Swap two columns from matrix A to B based on the same minimum column index.
void * lu_flag (size_t m, size_t n, double **const A, double **const LU, size_t *const pr, size_t *const pc, double tol, unsigned int flag)
 Compute the LU factorization of a matrix m-by-n with a specific pivoting.
void * lu (size_t m, size_t n, double **const A, double **const LU, size_t *const pr, size_t *const pc, double tol)
 Compute the LU factorization of a matrix n-by-n.

Detailed Description

Functions for computing LU decomposition of any square matrix.

Author:
Joan
Date:
19/01/2014 (start)
Version:
1.0