Fixed warnings

release/4.3a0
Richard Roberts 2011-07-01 22:49:23 +00:00
parent 5e5a3b0f24
commit ab0ed918f4
2 changed files with 10 additions and 7 deletions

View File

@ -22,12 +22,11 @@
#include <gtsam/linear/GaussianBayesNet.h>
#include <gtsam/linear/VectorValues.h>
#include <gtsam/inference/BayesNet-inl.h>
using namespace std;
using namespace gtsam;
// Explicitly instantiate so we don't have to include everywhere
#include <gtsam/inference/BayesNet-inl.h>
template class BayesNet<GaussianConditional>;
// trick from some reading group
#define FOREACH_PAIR( KEY, VAL, COL) BOOST_FOREACH (boost::tie(KEY,VAL),COL)
@ -35,6 +34,9 @@ template class BayesNet<GaussianConditional>;
namespace gtsam {
// Explicitly instantiate so we don't have to include everywhere
template class BayesNet<GaussianConditional>;
/* ************************************************************************* */
GaussianBayesNet scalarGaussian(Index key, double mu, double sigma) {
GaussianBayesNet bn;

View File

@ -18,15 +18,16 @@
#include <gtsam/3rdparty/Eigen/Eigen/Dense>
#include <gtsam/linear/GaussianISAM.h>
#include <gtsam/inference/ISAM-inl.h>
using namespace std;
using namespace gtsam;
// Explicitly instantiate so we don't have to include everywhere
#include <gtsam/inference/ISAM-inl.h>
template class ISAM<GaussianConditional>;
namespace gtsam {
// Explicitly instantiate so we don't have to include everywhere
template class ISAM<GaussianConditional>;
/* ************************************************************************* */
GaussianFactor::shared_ptr GaussianISAM::marginalFactor(Index j) const {
return Super::marginalFactor(j, &EliminateQR);