[BUGFIX] Fixed Failing Unit Test
parent
58de1ac296
commit
bc3398a6a2
|
|
@ -341,7 +341,7 @@ public:
|
||||||
if (Aterms.size() > 0) {
|
if (Aterms.size() > 0) {
|
||||||
Vector b = zero(delta.at(key).size());
|
Vector b = zero(delta.at(key).size());
|
||||||
Factor::const_iterator it = lp_.cost.find(key);
|
Factor::const_iterator it = lp_.cost.find(key);
|
||||||
if (it != lp_.cost.end()) b = lp_.cost.getA(it);
|
if (it != lp_.cost.end()) b = lp_.cost.getA(it).transpose();
|
||||||
return boost::make_shared<JacobianFactor>(Aterms, b); // compute the least-square approximation of dual variables
|
return boost::make_shared<JacobianFactor>(Aterms, b); // compute the least-square approximation of dual variables
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue