Revert "Fix sparse matrix printing."

This reverts commit c8fb8ba2d4d4b03aa1975269965283268e439e07.