[4634c7]: src / modules / glm / samplers / GLMSampler.cc Maximize Restore History

Download this file

GLMSampler.cc    27 lines (21 with data), 524 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <config.h>
#include "GLMSampler.h"
#include <sampler/GraphView.h>
#include <sampler/SingletonGraphView.h>
using std::vector;
namespace jags {
namespace glm {
GLMSampler::GLMSampler(GraphView *view,
vector<SingletonGraphView*> const &sub_views,
vector<SampleMethod*> const &methods)
: ParallelSampler(view, methods), _sub_views(sub_views)
{
}
GLMSampler::~GLMSampler()
{
while (!_sub_views.empty()) {
delete _sub_views.back();
_sub_views.pop_back();
}
}
}}