#include #include #include #include #include #include #include #include int main(int argc, char* argv[]) { int nnz=4746; int n=459; int i,j; MKL_INT mtype = 11; /* Real unsymmetric matrix */ MKL_INT nrhs = 1; /* Number of right hand sides. */ /* Pardiso control parameters. */ MKL_INT maxfct, mnum, phase, error, msglvl; /* Auxiliary variables. */ double ddum; /* Double dummy */ MKL_INT idum; /* Integer dummy. */ FILE *valf=fopen("a.txt","r"); FILE *colIndf=fopen("ja.txt","r"); FILE *rowPtrf=fopen("ia.txt","r"); if (valf==NULL) { printf("file open failed"); return 0; } double *a=(double*)malloc(nnz*sizeof(double)); int *ja=(int*)malloc(nnz*sizeof(int)); int *ia=(int*)malloc((n+1)*sizeof(int)); for (i=0;i