SymbolicFactor.cpp
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
18 #include <gtsam/base/FastVector.h>
24 
25 using namespace std;
26 
27 namespace gtsam {
28 
29  /* ************************************************************************* */
30  std::pair<boost::shared_ptr<SymbolicConditional>, boost::shared_ptr<SymbolicFactor> >
32  {
33  return internal::EliminateSymbolic(factors, keys);
34  }
35 
36  /* ************************************************************************* */
37  bool SymbolicFactor::equals(const This& other, double tol) const
38  {
39  return Base::equals(other, tol);
40  }
41 
42  /* ************************************************************************* */
43  std::pair<boost::shared_ptr<SymbolicConditional>, boost::shared_ptr<SymbolicFactor> >
44  SymbolicFactor::eliminate(const Ordering& keys) const
45  {
47  graph += *this; // TODO: Is there a way to avoid copying this factor?
48  return EliminateSymbolic(graph, keys);
49  }
50 
51 } // gtsam
Definition: Half.h:150
GaussianFactorGraph factors(list_of(factor1)(factor2)(factor3))
NonlinearFactorGraph graph
A thin wrapper around std::vector that uses a custom allocator.
traits
Definition: chartTesting.h:28
const G double tol
Definition: Group.h:83
const KeyVector keys
std::pair< boost::shared_ptr< SymbolicConditional >, boost::shared_ptr< SymbolicFactor > > EliminateSymbolic(const SymbolicFactorGraph &factors, const Ordering &keys)


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:45:07