#include "SparseMat.h" struct row_sp * InitializeSparseRow(int n, int pMax){ struct row_sp * row; int i; /* Set Dimensions */ row = malloc(sizeof(struct row_sp)); (*row).n = n; (*row).p = 0; (*row).pMax = pMax; /* Initializes memory for column and float values */ (*row).cols = malloc(pMax*sizeof(int)); (*row).vals = malloc(pMax*sizeof(float)); /* Returns pointer to structure */ return row; };