-
Notifications
You must be signed in to change notification settings - Fork 0
/
VEGAS_Aux.hpp
44 lines (30 loc) · 937 Bytes
/
VEGAS_Aux.hpp
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef VEGAS_aux
#define VEGAS_aux
#include"VEGAS.hpp"
// Define functions that help with getting some feedback for the Grid
template<class LD, int NDim, int NBin, int NBinInit, class RandEn>
void VEGAS<LD,NDim,NBin,NBinInit,RandEn>::PrintGrid(){
for( int dim=0 ; dim<NDim ; ++dim ){
for( auto _G: this->Grid[dim] ){
std::cout<<_G<<" ";
}
std::cout<<"\n";
}
}
template<class LD, int NDim, int NBin, int NBinInit, class RandEn>
void VEGAS<LD,NDim,NBin,NBinInit,RandEn>::PrintGrid(int dim){
for( auto _G: this->Grid[dim] ){
std::cout<<_G<<" ";
}
std::cout<<"\n";
}
template<class LD, int NDim, int NBin, int NBinInit, class RandEn>
void VEGAS<LD,NDim,NBin,NBinInit,RandEn>::PrintWeights(){
for( int dim=0 ; dim<NDim ; ++dim ){
for( auto _w: this->weights[dim] ){
std::cout<<_w<<" ";
}
std::cout<<"\n";
}
}
#endif