From a8136595194a86f3cdec95557faf7b85addbcd21 Mon Sep 17 00:00:00 2001
From: Moises Fernandez <moisesf@fmrib.ox.ac.uk>
Date: Fri, 7 Dec 2012 20:23:14 +0000
Subject: [PATCH] A simple version of Fibre and Multifibre class to use it
 inside the CUDA kernels

---
 CUDA/fibre_gpu.h | 71 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 CUDA/fibre_gpu.h

diff --git a/CUDA/fibre_gpu.h b/CUDA/fibre_gpu.h
new file mode 100644
index 0000000..2d19302
--- /dev/null
+++ b/CUDA/fibre_gpu.h
@@ -0,0 +1,71 @@
+#ifndef __FIBRE_GPU_
+#define __FIBRE_GPU_
+
+class FibreGPU{
+public:  
+    	float m_th;
+	float m_th_prop;
+	float m_th_prior;
+	int m_th_acc; 
+    	int m_th_rej;
+
+    	float m_ph;
+	float m_ph_prop;
+	float m_ph_prior;
+	int m_ph_acc;
+    	int m_ph_rej; 
+
+    	float m_f;
+	float m_f_prop;
+	float m_f_prior;
+	int m_f_acc;
+    	int m_f_rej;
+
+    	//float m_lam;
+    	//float m_lam_prop;
+    	//float m_lam_prior;
+    
+    	float m_prior_en;
+    	bool m_lam_jump;
+    	//float m_d;
+};
+
+class MultifibreGPU{
+public:    
+    
+    	float m_f0;
+    	float m_f0_prop;
+    	float m_f0_prior;
+	int m_f0_acc;
+    	int m_f0_rej;
+
+    	float m_tau;
+    	float m_tau_prop;
+    	float m_tau_prior;
+	int m_tau_acc;
+    	int m_tau_rej;
+
+	float m_S0;
+    	float m_S0_prop;
+    	float m_S0_prior;
+    	int m_S0_acc;
+    	int m_S0_rej;
+
+    	float m_d; 			
+    	float m_d_prop;
+    	float m_d_prior; 
+    	int m_d_acc;
+    	int m_d_rej;
+
+    	float m_dstd;
+    	float m_dstd_prop;
+    	float m_dstd_prior;	 
+    	int m_dstd_acc;
+    	int m_dstd_rej;
+
+    	float m_prior_en;		
+    	float m_likelihood_en;
+    	float m_energy;
+};
+
+#endif
-- 
GitLab