def __init__(self, mat, format=None):
        format = config['matrix']['sparse']['solve'] if format is None else format
        SparseMatrixSolver.__init__(self, mat)
        self.mat = self.mat.diags(format)