39int matinv(
double **
A,
double **Ainv,
int n)
50 for (i = 0; i < n; i++) {
51 for (j = 0; j < n; j++)
59 for (i = 0; i < n; i++) {
60 for (j = 0; j < i; j++) {
62 Ainv[i][j] = Ainv[j][i];
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
void lu_solve(double *x, double *b, int n)
int lu_decompose(double **a, int n)
int matinv(double **A, double **Ainv, int n)