3 #include <grass/libtrans.h>
5 #define EPSILON 1.0e-16
19 int i, j, k,
l, ir = 0, ic = 0;
20 int ipivot[
N], itemp[
N][2];
30 for (i = 0; i <
N; i++)
33 for (i = 0; i <
N; i++) {
36 for (j = 0; j <
N; j++) {
40 for (k = 0; k <
N; k++)
41 switch (ipivot[k] - 1) {
45 if (fabs(t) < fabs(m[j][k])) {
67 for (l = 0; l <
N; l++) {
85 for (j = 0; j <
N; j++)
89 for (k = 0; k <
N; k++)
94 for (l = 0; l <
N; l++)
95 m[k][l] -= (m[ic][l] * t);
100 for (i = 0; i <
N; i++) {
102 if (itemp[l][0] == itemp[l][1])
108 for (k = 0; k <
N; k++) {
133 for (i = 0; i <
N; i++)
134 for (j = 0; j <
N; j++)
int inverse(double m[N][N])
int isnull(double a[N][N])