get_model
							parent
							
								
									6dcc275432
								
							
						
					
					
						commit
						2a57a04ba6
					
				|  | @ -95,7 +95,7 @@ public: | ||||||
| 	    As_.insert(terms[i]); | 	    As_.insert(terms[i]); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	/** Construct an n-ary factor with a multiple sigmas*/ | 	/** Construct an n-ary factor with multiple sigmas*/ | ||||||
| 	GaussianFactor(const std::vector<std::pair<Symbol, Matrix> > &terms, | 	GaussianFactor(const std::vector<std::pair<Symbol, Matrix> > &terms, | ||||||
| 				const Vector &b, const Vector& sigmas) : | 				const Vector &b, const Vector& sigmas) : | ||||||
| 			b_(b), model_(noiseModel::Diagonal::Sigmas(sigmas)) { | 			b_(b), model_(noiseModel::Diagonal::Sigmas(sigmas)) { | ||||||
|  | @ -139,6 +139,9 @@ public: | ||||||
| 	/** get a copy of sigmas */ | 	/** get a copy of sigmas */ | ||||||
| 	const Vector& get_sigmas() const {	return model_->sigmas();	} | 	const Vector& get_sigmas() const {	return model_->sigmas();	} | ||||||
| 
 | 
 | ||||||
|  | 	/** get a copy of sigmas */ | ||||||
|  | 	const sharedDiagonal& get_model() const {	return model_;	} | ||||||
|  | 
 | ||||||
| 	/**
 | 	/**
 | ||||||
| 	 * get a copy of the A matrix from a specific node | 	 * get a copy of the A matrix from a specific node | ||||||
| 	 * O(log n) | 	 * O(log n) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue