#include #include #include #include #include #include "aux.h" int ISEED[4] = {0,0,0,1}; int IONE=1; char NoTran = 'N'; double DONE=1.0, DMONE=-1.0; double alpha=1.0, beta=0.0; void init_data(layer **L, data **Ds, data **Dpl, data **Dpt, int n, int m, int l){ int i, j, lay, mm; *L = (layer*) malloc(l*sizeof(layer)); *Ds = (data*) malloc((l+1)*sizeof(data)); *Dpl = (data*) malloc((l+1)*sizeof(data)); *Dpt = (data*) malloc((l+1)*sizeof(data)); mm = m*m; for(lay=0; lay mx) mx = fabs((X1[i].b)[k]-(X2[i].b)[k])/fabs((X1[i].b)[k]); } } printf("The maximum difference on coefficients is %e\n",mx); } long usecs (){ struct timeval t; gettimeofday(&t,NULL); return t.tv_sec*1000000+t.tv_usec; }