// This is a copy of http://cap-lore.com/MatPhys/determ/d.c // To compute the determinant of a k by k matrix where A[i, j] // is located at b + i*s + j. // k > 0 // the matrix is corrupted. typedef double R; R det(R * b, int k, int s){ if(k==1) return *b; {int j; for(j=0; j