8 static inline int min1pow(
int pow) {
return (pow % 2) ? -1 : 1; }
15 static inline int min1pow_m_neg(
int m) {
16 return (m < 0) ? min1pow(m) : 1;
21 #ifdef __GSL_SF_LEGENDRE_H__
22 static inline complex
double
23 spharm_eval(gsl_sf_legendre_t P_normconv,
int P_csphase,
qpms_l_t l,
qpms_m_t m,
double P_n_abs_m, complex
double exp_imf) {
33 static inline complex
double ipow(
int x) {
34 x = ((x % 4) + 4) % 4;
49 static inline int isq(
int x) {
return x * x;}
52 #define MIN(x, y) (((x) < (y)) ? (x) : (y))
56 #define MAX(x, y) (((x) >= (y)) ? (x) : (y))
60 #define SQ(x) ((x) * (x))
int qpms_l_t
Type for spherical harmonic degree l.
Definition: qpms_types.h:27
qpms_lm_t qpms_m_t
Type for spherical harmonic order m.
Definition: qpms_types.h:31
A VSWF representation element of the qpms_l_t l
< The O(3) element in the quaternion representation.
Definition: quaternions.h:214