GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
lu.c File Reference
#include <math.h>
#include <grass/gis.h>
#include <grass/gmath.h>
Include dependency graph for lu.c:

Go to the source code of this file.

Macros

#define TINY   1.0e-20;
 

Functions

int G_ludcmp (double **a, int n, int *indx, double *d)
 LU decomposition. More...
 
void G_lubksb (double **a, int n, int *indx, double b[])
 LU backward substitution. More...
 

Macro Definition Documentation

◆ TINY

#define TINY   1.0e-20;

Definition at line 6 of file lu.c.

Function Documentation

◆ G_lubksb()

void G_lubksb ( double **  a,
int  n,
int *  indx,
double  b[] 
)

LU backward substitution.

Parameters
adouble **
nint
indxint *
bdouble []
Returns
void

Definition at line 104 of file lu.c.

◆ G_ludcmp()

int G_ludcmp ( double **  a,
int  n,
int *  indx,
double *  d 
)

LU decomposition.

Parameters
adouble **
nint
indxint *
ddouble *
Returns
0 on singular matrix, 1 on success

Definition at line 18 of file lu.c.