def updateQs(self): Qs = self.Qs Ns = self.Ns oml0 = self.oml0 for f in range(len(Ns)): PGMlib.updateqs(oml0.nQ, Ns[f].shape[0], Ns[f].shape[1], Ns[f], Qs[f], oml0.Q)