aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--rqmc.cpp14
2 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 425d8bd..6b87c38 100644
--- a/Makefile
+++ b/Makefile
@@ -14,5 +14,8 @@ main.o: stratified_sampling.o
test: test.o mt19937.o
$(CXX) $^ -o $@
+rqmc: rqmc.o
+ $(CXX) $^ -o $@ $(GSL_FLAGS)
+
clean:
-$(RM) -f *.o test stratified_sampling main
diff --git a/rqmc.cpp b/rqmc.cpp
new file mode 100644
index 0000000..40fd8ad
--- /dev/null
+++ b/rqmc.cpp
@@ -0,0 +1,14 @@
+#include "low_discrepancy.hpp"
+#include <vector>
+
+int main() {
+ sobol s(3);
+ std::vector<double> q;
+ std::vector<double> a;
+ q = s();
+ a = s();
+ for(int i=0; i<3; i++){
+ std::cout<<a[i]<<std::endl;
+ }
+ return 0;
+}