This can be changed to `self.spmatrix` --- the test is run by the test framework with `self.spmatrix == csr_matrix`, `csc_matrix`, ...