General cleanup and removal of all unnecessary references

This commit is contained in:
Alexander Liljengård
2016-05-24 16:31:21 +02:00
parent 519ad85fad
commit a65f2aa9f3
43 changed files with 366 additions and 386 deletions

View File

@ -9,7 +9,7 @@ class FactorList
public function getLogNormalization()
{
$list = &$this->_list;
$list = $this->_list;
foreach ($list as &$currentFactor) {
$currentFactor->resetMarginals();
}
@ -42,7 +42,7 @@ class FactorList
return count($this->_list);
}
public function &addFactor(Factor &$factor)
public function addFactor(Factor $factor)
{
$this->_list[] = $factor;
return $factor;