Diff of /src/modules/glm/samplers/ConjugateFSampler.cc [01a998] .. [081fbe]  Maximize  Restore

Switch to side-by-side view

--- a/src/modules/glm/samplers/ConjugateFSampler.cc
+++ b/src/modules/glm/samplers/ConjugateFSampler.cc
@@ -5,37 +5,41 @@
 using std::string;
 using std::vector;
 
-ConjugateFSampler::ConjugateFSampler(GraphView *gv1, GraphView *gv2, 
-				     vector<ConjugateFMethod*> const &methods)
-    : Sampler(gv1), _gv2(gv2), _methods(methods)
-{}
+namespace glm {
+    
+    ConjugateFSampler::ConjugateFSampler(GraphView *gv1, GraphView *gv2, 
+					 vector<ConjugateFMethod*> const &methods)
+	: Sampler(gv1), _gv2(gv2), _methods(methods)
+    {}
+    
+    ConjugateFSampler::~ConjugateFSampler()
+    {
+	delete _gv2;
+    }
 
-ConjugateFSampler::~ConjugateFSampler()
-{
-    delete _gv2;
+    bool ConjugateFSampler::isAdaptive() const
+    {
+	return false;
+    }
+
+    void ConjugateFSampler::adaptOff()
+    {
+    }
+
+    bool ConjugateFSampler::checkAdaptation() const
+    {
+	return true;
+    }
+    string ConjugateFSampler::name() const
+    {
+	return "conjugateF";
+    }
+
+    void ConjugateFSampler::update(vector<RNG*> const &rngs)
+    {
+	for (unsigned int i = 0; i < _methods.size(); ++i) {
+	    _methods[i]->update(rngs[i]);
+	}
+    }
+
 }
-
-bool ConjugateFSampler::isAdaptive() const
-{
-    return false;
-}
-
-void ConjugateFSampler::adaptOff()
-{
-}
-
-bool ConjugateFSampler::checkAdaptation() const
-{
-    return true;
-}
-string ConjugateFSampler::name() const
-{
-    return "conjugateF";
-}
-
-void ConjugateFSampler::update(vector<RNG*> const &rngs)
-{
-    for (unsigned int i = 0; i < _methods.size(); ++i) {
-	_methods[i]->update(rngs[i]);
-    }
-}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks