def __mul__(self, s):
    '\n\n        '
    from ..coefficient_array import CoefficientArray
    import numpy as np
    if np.isscalar(s):
        for (key, Dl) in self.D.items():
            self.D[key] = (s * Dl)
    elif isinstance(s, CoefficientArray):
        out = type(s)(dtype=s.dtype)
        for key in s.keys():
            out[key] = (self.D[key] * s[key])
        return out
def __mul__(self, s):
    '\n\n        '
    from ..coefficient_array import CoefficientArray
    import numpy as np
    if np.isscalar(s):
        for (key, Dl) in self.D.items():
            self.D[key] = (s * Dl)
    elif isinstance(s, CoefficientArray):
        out = type(s)(dtype=s.dtype)
        for key in s.keys():
            out[key] = (self.D[key] * s[key])
        return out