#include "SparseMat.h" void WriteSparseMat(char FileName[], struct mat_sp A) { FILE * fp; int i, j, p; float z; struct row_sp * row; /* Opening File for Writing */ /* Add File testing */ fp =fopen(FileName,"w"); /* Printing Header to File */ fprintf(fp, "5903SparseMatrix\n"); fprintf(fp, "%d\t%d\tfloat\n", A.m, A.n); /* Printing Rows */ for(i=0; i