39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/* ----------------------------------------------------------------------------
|
|
|
|
* 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 IndexFactor.cpp
|
|
* @brief
|
|
* @author Richard Roberts
|
|
* @created Oct 17, 2010
|
|
*/
|
|
|
|
#include <gtsam/inference/Factor-inl.h>
|
|
#include <gtsam/inference/IndexFactor.h>
|
|
|
|
namespace gtsam {
|
|
|
|
template class FactorBase<Index>;
|
|
|
|
IndexFactor::IndexFactor(const IndexConditional& c) : Base(static_cast<const Base>(c)) {}
|
|
|
|
IndexFactor::shared_ptr IndexFactor::Combine(
|
|
const FactorGraph<This>& factors, const FastMap<Index, std::vector<Index> >& variableSlots) {
|
|
return Base::Combine<This>(factors, variableSlots); }
|
|
|
|
boost::shared_ptr<IndexConditional> IndexFactor::eliminateFirst() {
|
|
return Base::eliminateFirst<IndexConditional>(); }
|
|
|
|
boost::shared_ptr<BayesNet<IndexConditional> > IndexFactor::eliminate(size_t nrFrontals) {
|
|
return Base::eliminate<IndexConditional>(nrFrontals); }
|
|
|
|
}
|