Ajout du TP HeatTransfert.
[GPU.git] / WCudaMSE / BilatTools_CPP / src / core / tools / header / namespace_cpu / IndiceTools_CPU.h
1 #ifndef INDICE_TOOLS_CPU_H_
2 #define INDICE_TOOLS_CPU_H_
3
4 /*----------------------------------------------------------------------*\
5 |* Declaration *|
6 \*---------------------------------------------------------------------*/
7
8 /*--------------------------------------*\
9 |* Public *|
10 \*-------------------------------------*/
11
12 namespace cpu
13 {
14 class IndiceTools
15 {
16
17 /*--------------------------------------*\
18 |* Constructor *|
19 \*--------------------------------------*/
20
21 public:
22
23 /*--------------------------------------*\
24 |* Methodes *|
25 \*--------------------------------------*/
26
27 public:
28
29 /**
30 * s[0,W*H[ --> i[0,H[ j[0,W[
31 */
32 static void toIJ(int s, int W, int* ptri, int* ptrj);
33
34 /**
35 * i[0,H[ j[0,W[ --> s[0,W*H[
36 */
37 static int toS(int W, int i, int j);
38
39 /*-------------------------------------*\
40 |* Attributs *|
41 \*-------------------------------------*/
42
43 private:
44
45 };
46 }
47
48 #endif
49
50 /*----------------------------------------------------------------------*\
51 |* End *|
52 \*---------------------------------------------------------------------*/