X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBilatTools_CPP%2Fsrc%2Fcore%2Ftools%2Fheader%2Fnamespace_cpu%2FIndiceTools_CPU.h;fp=WCudaMSE%2FBilatTools_CPP%2Fsrc%2Fcore%2Ftools%2Fheader%2Fnamespace_cpu%2FIndiceTools_CPU.h;h=89e2f3e1e712007deac5a74230b8988aa5c056ae;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h new file mode 100755 index 0000000..89e2f3e --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h @@ -0,0 +1,53 @@ +#ifndef INDICE_TOOLS_CPU_H_ +#define INDICE_TOOLS_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class IndiceTools + { + + /*--------------------------------------*\ + |* Constructor *| + \*--------------------------------------*/ + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*--------------------------------------*/ + + public: + + /** + * s[0,W*H[ --> i[0,H[ j[0,W[ + */ + static void toIJ( int s, int W, int* ptri, int* ptrj); + + /** + * i[0,H[ j[0,W[ --> s[0,W*H[ + */ + static int toS(int W, int i, int j); + + + /*-------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/