X-Git-Url: http://git.treefish.org/~alex/phys/su2clebsch.git/blobdiff_plain/e2c2ab8026276b7ebe343b1ebe86f3248547940a..a622ebcd74418e5b942db3bb51452e2931eb2d93:/su2clebsch.hpp?ds=inline diff --git a/su2clebsch.hpp b/su2clebsch.hpp index 689c0a1..955868c 100644 --- a/su2clebsch.hpp +++ b/su2clebsch.hpp @@ -1,11 +1,27 @@ #ifndef SU2CLEBSCH_HPP #define SU2CLEBSCH_HPP +using namespace std; + namespace su2clebsch { + struct prestore { + private: + unsigned int max2j; + double *cgcdata; + public: + prestore(unsigned int _max2j); + ~prestore(); + + friend double cgc (int factor1_2j, int factor1_2m, int factor2_2j, int factor2_2m, + int irrep_2j, int irrep_2m, const prestore& Prestore); + }; + double cgc (int factor1_2j, int factor1_2m, int factor2_2j, int factor2_2m, int irrep_2j, int irrep_2m); + double cgc (int factor1_2j, int factor1_2m, int factor2_2j, int factor2_2m, + int irrep_2j, int irrep_2m, const prestore& Prestore); }; #endif