Accessor for Sparse Matrix
Hi, I need a piece of code to work with sparse matrices, I've never worked with them before. Basically, I need to write a C function taking in a sparse matrix and two integers, say a and b, and return the element with row index a and column index b in the represented array. The sparse array data type itself ought to be holding the three arrays necessary to store the compressed array (with compressed row storage) and the row,col size of the original sparse array.
So ....anyone can help me out with this?