Factor: improve factor multiplication
Pass the argument as reference-to-const and also allow chaining of multiplications.
This commit is contained in:
@@ -30,7 +30,7 @@ class Factor : public GenericFactor<VarId> {
|
||||
|
||||
void sumOutAllExceptIndex (size_t idx);
|
||||
|
||||
void multiply (Factor&);
|
||||
Factor& multiply (const Factor&);
|
||||
|
||||
std::string getLabel() const;
|
||||
|
||||
|
Reference in New Issue
Block a user