/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * -------------------------------------------------------------------------- */ /** * @file SymbolicFactor.cpp * @author Richard Roberts * @date Oct 17, 2010 */ #include #include #include #include #include #include using namespace std; namespace gtsam { /* ************************************************************************* */ std::pair, boost::shared_ptr > EliminateSymbolic(const SymbolicFactorGraph& factors, const Ordering& keys) { return internal::EliminateSymbolic(factors, keys); } /* ************************************************************************* */ bool SymbolicFactor::equals(const This& other, double tol) const { return Base::equals(other, tol); } /* ************************************************************************* */ std::pair, boost::shared_ptr > SymbolicFactor::eliminate(const Ordering& keys) const { SymbolicFactorGraph graph; graph += *this; // TODO: Is there a way to avoid copying this factor? return EliminateSymbolic(graph, keys); } } // gtsam