changed parameter to const in function eq_combine_and_eliminate
parent
1ce50a8258
commit
e2a05b37d8
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue