make_shared is a tad faster
parent
930c77642e
commit
f887ca47b9
|
|
@ -130,7 +130,7 @@ boost::shared_ptr<GaussianFactor> NoiseModelFactor::linearize(
|
|||
noiseModel::Constrained::shared_ptr model = constrained->unit(d_);
|
||||
return boost::make_shared<JacobianFactor>(terms, b_, model);
|
||||
} else
|
||||
return GaussianFactor::shared_ptr(new JacobianFactor(terms, b));
|
||||
return boost::make_shared<JacobianFactor>(terms, b);
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
|
|
|
|||
Loading…
Reference in New Issue