More whitespace cleanups
This commit is contained in:
parent
421d6f72ee
commit
01d8f8e178
@ -4,7 +4,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
|
||||||
|
|
||||||
#include "FactorGraph.h"
|
#include "FactorGraph.h"
|
||||||
#include "BayesBallGraph.h"
|
#include "BayesBallGraph.h"
|
||||||
@ -15,8 +14,8 @@ using namespace std;
|
|||||||
|
|
||||||
struct ScheduleInfo
|
struct ScheduleInfo
|
||||||
{
|
{
|
||||||
ScheduleInfo (BBNode* n, bool vfp, bool vfc) :
|
ScheduleInfo (BBNode* n, bool vfp, bool vfc)
|
||||||
node(n), visitedFromParent(vfp), visitedFromChild(vfc) { }
|
: node(n), visitedFromParent(vfp), visitedFromChild(vfc) { }
|
||||||
|
|
||||||
BBNode* node;
|
BBNode* node;
|
||||||
bool visitedFromParent;
|
bool visitedFromParent;
|
||||||
|
@ -47,8 +47,7 @@ CountingBp::printSolverFlags (void) const
|
|||||||
ss << ",max_iter=" << BpOptions::maxIter;
|
ss << ",max_iter=" << BpOptions::maxIter;
|
||||||
ss << ",accuracy=" << BpOptions::accuracy;
|
ss << ",accuracy=" << BpOptions::accuracy;
|
||||||
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
ss << ",log_domain=" << Util::toString (Globals::logDomain);
|
||||||
ss << ",chkif=" <<
|
ss << ",chkif=" << Util::toString (CountingBp::checkForIdenticalFactors);
|
||||||
Util::toString (CountingBp::checkForIdenticalFactors);
|
|
||||||
ss << "]" ;
|
ss << "]" ;
|
||||||
cout << ss.str() << endl;
|
cout << ss.str() << endl;
|
||||||
}
|
}
|
||||||
|
@ -92,6 +92,7 @@ ProbFormula::rename (LogVar oldName, LogVar newName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool operator== (const ProbFormula& f1, const ProbFormula& f2)
|
bool operator== (const ProbFormula& f1, const ProbFormula& f2)
|
||||||
{
|
{
|
||||||
return f1.group_ == f2.group_ &&
|
return f1.group_ == f2.group_ &&
|
||||||
|
@ -219,7 +219,7 @@ class TinySet
|
|||||||
return ! (s1.vec_ == s2.vec_);
|
return ! (s1.vec_ == s2.vec_);
|
||||||
}
|
}
|
||||||
|
|
||||||
friend std::ostream& operator << (std::ostream& out, const TinySet& s)
|
friend std::ostream& operator<< (std::ostream& out, const TinySet& s)
|
||||||
{
|
{
|
||||||
out << "{" ;
|
out << "{" ;
|
||||||
typename vector<T>::size_type i;
|
typename vector<T>::size_type i;
|
||||||
|
@ -374,7 +374,7 @@ void operator^=(std::vector<T>& v, int iexp)
|
|||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
std::ostream& operator << (std::ostream& os, const vector<T>& v)
|
std::ostream& operator<< (std::ostream& os, const vector<T>& v)
|
||||||
{
|
{
|
||||||
os << "[" ;
|
os << "[" ;
|
||||||
os << Util::elementsToString (v, ", ");
|
os << Util::elementsToString (v, ", ");
|
||||||
|
Reference in New Issue
Block a user