overload == operator for GaussianBayesNet and VectorValues
							parent
							
								
									409938f4b4
								
							
						
					
					
						commit
						93c824c482
					
				| 
						 | 
					@ -82,6 +82,12 @@ namespace gtsam {
 | 
				
			||||||
    /** Check equality */
 | 
					    /** Check equality */
 | 
				
			||||||
    bool equals(const This& bn, double tol = 1e-9) const;
 | 
					    bool equals(const This& bn, double tol = 1e-9) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /// Check exact equality.
 | 
				
			||||||
 | 
					    friend bool operator==(const GaussianBayesNet& lhs,
 | 
				
			||||||
 | 
					                           const GaussianBayesNet& rhs) {
 | 
				
			||||||
 | 
					      return lhs.isEqual(rhs);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// print graph
 | 
					    /// print graph
 | 
				
			||||||
    void print(
 | 
					    void print(
 | 
				
			||||||
        const std::string& s = "",
 | 
					        const std::string& s = "",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -260,6 +260,11 @@ namespace gtsam {
 | 
				
			||||||
    /** equals required by Testable for unit testing */
 | 
					    /** equals required by Testable for unit testing */
 | 
				
			||||||
    bool equals(const VectorValues& x, double tol = 1e-9) const;
 | 
					    bool equals(const VectorValues& x, double tol = 1e-9) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /// Check exact equality.
 | 
				
			||||||
 | 
					    friend bool operator==(const VectorValues& lhs, const VectorValues& rhs) {
 | 
				
			||||||
 | 
					      return lhs.equals(rhs);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// @{
 | 
					    /// @{
 | 
				
			||||||
    /// @name Advanced Interface
 | 
					    /// @name Advanced Interface
 | 
				
			||||||
    /// @{
 | 
					    /// @{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue