changed parameter to const in function eq_combine_and_eliminate

release/4.3a0
Manohar Paluri 2009-08-28 15:15:05 +00:00
parent 1ce50a8258
commit e2a05b37d8
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ void ConstrainedLinearFactorGraph::print(const std::string& s) const
} }
void ConstrainedLinearFactorGraph::eq_combine_and_eliminate( void ConstrainedLinearFactorGraph::eq_combine_and_eliminate(
const EqualityFactor& eqf, MutableLinearFactor& joint_factor) // joint factor should be const const EqualityFactor& eqf, const MutableLinearFactor& joint_factor)
{ {
// start empty remaining factor to be returned // start empty remaining factor to be returned
boost::shared_ptr<MutableLinearFactor> lf(new MutableLinearFactor); boost::shared_ptr<MutableLinearFactor> lf(new MutableLinearFactor);

View File

@ -110,7 +110,7 @@ public:
* Combines an equality factor with a joined linear factor * Combines an equality factor with a joined linear factor
* Executes in place, and will add new factors back to the graph * Executes in place, and will add new factors back to the graph
*/ */
void eq_combine_and_eliminate(const EqualityFactor& eqf, MutableLinearFactor& joint_factor); void eq_combine_and_eliminate(const EqualityFactor& eqf, const MutableLinearFactor& joint_factor);
/** /**
* This function returns the best ordering for this linear factor * This function returns the best ordering for this linear factor