Checkpoint before another reference pass

This commit is contained in:
Jeff Moser
2010-09-30 07:07:05 -04:00
parent 4c7cfef8d6
commit 5368f7528e
3 changed files with 5 additions and 5 deletions

View File

@ -218,8 +218,8 @@ class GaussianWeightedSumFactor extends GaussianFactor
$allMessagesCount = count($allMessages);
for ($i = 0; $i < $allMessagesCount; $i++)
{
$updatedMessages[] =$allMessages[$indicesToUse[$i]];
$updatedVariables[] = $allVariables[$indicesToUse[$i]];
$updatedMessages[] = &$allMessages[$indicesToUse[$i]];
$updatedVariables[] = &$allVariables[$indicesToUse[$i]];
}
return $this->updateHelper($this->_weights[$messageIndex],