#include "mbs_errors_names.h"
#include <math.h>
#include "useful_functions.h"
#include "mbs_message.h"
Macros | |
#define | NRANSI |
#define | TINY 1.0e-20 |
Functions | |
int | ludcmp (double **a, int n, int *indx, double *d) |
LU decomposition of a matrix with index starting at 1. More... | |
int | ludcmp_0 (double **a, int n, int *indx, double *d) |
LU decomposition of a matrix with index starting at 0. More... | |
#define NRANSI |
#define TINY 1.0e-20 |
int ludcmp | ( | double ** | a, |
int | n, | ||
int * | indx, | ||
double * | d | ||
) |
LU decomposition of a matrix with index starting at 1.
[in,out] | a | Input and output matrix with index starting at 1. |
[in] | n | size of the square matrix a : [n x n] . |
[out] | indx | Row permutations with index starting at 1. |
[out] | d | +1 if the number of row interchange is even, -1 if it is odd. |
int ludcmp_0 | ( | double ** | a, |
int | n, | ||
int * | indx, | ||
double * | d | ||
) |
LU decomposition of a matrix with index starting at 0.
[in,out] | a | Input and output matrix with index starting at 0. |
[in] | n | size of the square matrix a : [n x n]. |
[out] | indx | Row permutations with index starting at 0. |
[out] | d | +1 if the number of row interchange is even, -1 if it is odd. |