Robotran C Documentation
Macros | Functions
ludcmp.c File Reference
#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...
 

Macro Definition Documentation

◆ NRANSI

#define NRANSI

◆ TINY

#define TINY   1.0e-20

Function Documentation

◆ ludcmp()

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

LU decomposition of a matrix with index starting at 1.

Parameters
[in,out]aInput and output matrix with index starting at 1.
[in]nsize of the square matrix a : [n x n] .
[out]indxRow permutations with index starting at 1.
[out]d+1 if the number of row interchange is even, -1 if it is odd.
Returns
Error status, <0 in case of failure (= 0 if no error).

◆ ludcmp_0()

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

LU decomposition of a matrix with index starting at 0.

Parameters
[in,out]aInput and output matrix with index starting at 0.
[in]nsize of the square matrix a : [n x n].
[out]indxRow permutations with index starting at 0.
[out]d+1 if the number of row interchange is even, -1 if it is odd.
Returns
Error status, <0 in case of failure.