def init(self):
    'Initializes messages awith default values.'
    c = (0.0 if self.logdomain else 1.0)
    for i in range(self.nrVars):
        for ii in self.nbV[i]:
            self._edges[i][ii.iter].message.fill(c)
            self._edges[i][ii.iter].new_message.fill(c)
            if (self.updates == 'SEQMAX'):
                self._update_residual(i, ii.iter, 0.0)
    self._iters = 0
Initializes messages awith default values.
def init(self):
    
    c = (0.0 if self.logdomain else 1.0)
    for i in range(self.nrVars):
        for ii in self.nbV[i]:
            self._edges[i][ii.iter].message.fill(c)
            self._edges[i][ii.iter].new_message.fill(c)
            if (self.updates == 'SEQMAX'):
                self._update_residual(i, ii.iter, 0.0)
    self._iters = 0