Sparse matrix operations.