diff --git a/orbital4c/complex_fcn.py b/orbital4c/complex_fcn.py index 3e67124..a6d2995 100644 --- a/orbital4c/complex_fcn.py +++ b/orbital4c/complex_fcn.py @@ -71,6 +71,12 @@ def real_mul(self, coeff): output.imag = self.imag * coeff return output + def imag_mul(self, coeff): + output = complex_fcn() + output.real = self.imag * (-1.0 * coeff) + output.imag = self.real * coeff + return output + def __rmul__(self, other): output = complex_fcn() output.real = self.real * np.real(other) - self.imag * np.imag(other)