40 extern void lu_solve(
double *x,
double *b,
int n);
42 int matinv(
double **A,
double **Ainv,
int n)
53 for (i = 0; i < n; i++) {
54 for (j = 0; j < n; j++)
62 for (i = 0; i < n; i++) {
63 for (j = 0; j < i; j++) {
65 Ainv[i][j] = Ainv[j][i];
void lu_solve(double *x, double *b, int n)
int matinv(double **A, double **Ainv, int n)
int lu_decompose(double **a, int n)