'Change the shape of the matrix.'

def reshape(self, matrix, size):

    matrix = matrix.todense()
    matrix = super(SparseMatrixInterface, self).reshape(matrix, size)
    return self.const_to_matrix(matrix, convert_scalars=True)
