Suppose I have a large matrix, the diagonal element is number \'a\', the non-diagonal element is number \'b\'. So, how to save this matrix with less memory? Does SparseMatri