My Project
ssht_types.h
Go to the documentation of this file.
1 // SSHT package to perform spin spherical harmonic transforms
2 // Copyright (C) 2011 Jason McEwen
3 // See LICENSE.txt for license details
4 
35 #ifndef SSHT_TYPES
36 #define SSHT_TYPES
37 
38 #define SSHT_PI 3.141592653589793238462643383279502884197
39 #define SSHT_PION2 1.570796326794896619231321691639751442099
40 
41 #define SSHT_SQRT2 1.41421356237309504880168872420969807856967
42 
43 
44 
45 #define SSHT_PROMPT "[ssht] "
46 
47 #ifdef __cplusplus
48 #include <complex>
49 #define SSHT_COMPLEX(TYPE) std::complex<TYPE>
50 extern "C" {
51 #else
52 #define SSHT_COMPLEX(TYPE) TYPE complex
53 #endif
54 
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 
61 #endif