Debug sparse matrix support.