def __neg__(self):
    '\n        '
    from ..coefficient_array import CoefficientArray
    if isinstance(self.D, CoefficientArray):
        out_data = type(self.D)(dtype=self.D.dtype, ctype=self.D.ctype)
        out = DiagonalPreconditioner(out_data, self.c0)
        for (k, v) in self.D.items():
            out.D[k] = (- v)
        return out
    else:
        out = DiagonalPreconditioner(self.D, self.c0)
        out.D = (- self.D)
        return out
def __neg__(self):
    '\n        '
    from ..coefficient_array import CoefficientArray
    if isinstance(self.D, CoefficientArray):
        out_data = type(self.D)(dtype=self.D.dtype, ctype=self.D.ctype)
        out = DiagonalPreconditioner(out_data, self.c0)
        for (k, v) in self.D.items():
            out.D[k] = (- v)
        return out
    else:
        out = DiagonalPreconditioner(self.D, self.c0)
        out.D = (- self.D)
        return out