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  double SymbolicFactor::error(const HybridValues& c) const {
31  throw std::runtime_error("SymbolicFactor::error is not implemented");
32  }
33 
34  /* ************************************************************************* */
35  std::pair<std::shared_ptr<SymbolicConditional>, std::shared_ptr<SymbolicFactor> >
37  {
39  }
40 
41  /* ************************************************************************* */
42  bool SymbolicFactor::equals(const This& other, double tol) const
43  {
44  return Base::equals(other, tol);
45  }
46 
47  /* ************************************************************************* */
48  std::pair<std::shared_ptr<SymbolicConditional>, std::shared_ptr<SymbolicFactor> >
49  SymbolicFactor::eliminate(const Ordering& keys) const
50  {
52  graph.push_back(*this); // TODO: Is there a way to avoid copying this factor?
53  return EliminateSymbolic(graph, keys);
54  }
55 
56 } // gtsam
gtsam::HybridValues
Definition: HybridValues.h:38
FastVector.h
A thin wrapper around std::vector that uses a custom allocator.
keys
const KeyVector keys
Definition: testRegularImplicitSchurFactor.cpp:40
c
Scalar Scalar * c
Definition: benchVecAdd.cpp:17
simple_graph::factors
const GaussianFactorGraph factors
Definition: testJacobianFactor.cpp:213
Ordering.h
Variable ordering for the elimination algorithm.
gtsam::Factor
Definition: Factor.h:69
SymbolicFactor.h
SymbolicConditional.h
gtsam::SymbolicFactorGraph
Definition: SymbolicFactorGraph.h:61
SymbolicFactorGraph.h
SymbolicFactor-inst.h
gtsam
traits
Definition: chartTesting.h:28
error
static double error
Definition: testRot3.cpp:37
std
Definition: BFloat16.h:88
gtsam::tol
const G double tol
Definition: Group.h:79
graph
NonlinearFactorGraph graph
Definition: doc/Code/OdometryExample.cpp:2
gtsam::Ordering
Definition: inference/Ordering.h:33
pybind_wrapper_test_script.other
other
Definition: pybind_wrapper_test_script.py:42
gtsam::EliminateSymbolic
std::pair< std::shared_ptr< SymbolicConditional >, std::shared_ptr< SymbolicFactor > > EliminateSymbolic(const SymbolicFactorGraph &factors, const Ordering &keys)
Definition: SymbolicFactor.cpp:36


gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:07:02