def __init__(self, method, mp_results, omega=0.0): self.omega = omega super().__init__(method, mp_results) diagonal = AmplitudeVector(*tuple( self.diagonal(block) for block in self.blocks )) self.omegamat = adcc.ones_like(diagonal) * omega
def __init__(self, method, mp_results, omega=0.0): self.omega = omega super().__init__(method, mp_results) self.omegamat = adcc.ones_like(self.diagonal()) * omega
def update_omega(self, omega): diagonal = AmplitudeVector(*tuple( self.diagonal(block) for block in self.blocks)) self.omega = omega self.omegamat = adcc.ones_like(diagonal) * omega