Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP / src / cpp / core / omp / 02_pi / 00_pi_tools.h
diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h
new file mode 100755 (executable)
index 0000000..d975793
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef PI_TOOLS_H_\r
+#define PI_TOOLS_H_\r
+\r
+#include <string>\r
+\r
+using std::string;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+// ptr fonction de type double xxx(int n)\r
+// ou xxx sera une methode de calcul de pi\r
+typedef double (*AlgoPI)(int);\r
+\r
+/*--------------------------------------*\\r
+ |*            Methode                 *|\r
+ \*-------------------------------------*/\r
+\r
+double fpi(double x);\r
+bool isAlgoPI_OK(AlgoPI algoPI, int n, string title);\r
+\r
+#endif\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r
+\r