1. A computer implemented method for representing a sparse matrix of data, comprising: (a) for each line of a sparse matrix, storing in memory the non-zero values from that line of the matrix and also a number of null or zero values, such that the overall number of stored values for the line is a predetermined number, and (b) storing the indices denoting the position in the line of the stored values.