#include #include #include #include int main(int argc, char* argv[]) { int ret_code; MM_typecode matcode; FILE *f; int M, N, nz; int i, *I, *J,*ia,*ja; double *val,*acsr; clock_t start, stop; //Open the file if ((f = fopen(argv[1], "r")) == NULL){ printf("Cant open"); exit(1); } M=400; N=400; nz=2860; /* reseve memory for matrices */ I = (int *) malloc(nz * sizeof(int)); J = (int *) malloc(nz * sizeof(int)); val = (double *) malloc(nz * sizeof(double)); for (i=0; i