Refactored sparse matrices comparison tests
Merge pull request #1866 from Hengjean/sparseComparisonOp

Refactored sparse matrices comparison tests