| 
									
										
										
										
											2010-10-20 05:31:13 +08:00
										 |  |  | /* ----------------------------------------------------------------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  * 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 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-23 02:02:55 +08:00
										 |  |  | #include <gtsam/inference/FactorBase-inl.h>
 | 
					
						
							| 
									
										
										
										
											2010-10-20 05:31:13 +08:00
										 |  |  | #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); } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |