sharedFactor from template instead of being hardcoded

release/4.3a0
Chris Beall 2011-03-08 15:32:44 +00:00
parent 1c1e47ca1f
commit 86bfb571d4
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ namespace gtsam {
Matrix A = eye(dim);
Vector b = zero(dim);
SharedDiagonal model = noiseModel::Isotropic::Sigma(dim,sigma);
GaussianFactor::shared_ptr prior(new JacobianFactor(j, A, b, model));
typename L::sharedFactor prior(new JacobianFactor(j, A, b, model));
damped->push_back(prior);
}
}