27#ifndef MATH_WIGNER3JM_HPP
28#define MATH_WIGNER3JM_HPP
36 inline int sign(T x) {
37 return (x > 0) ? 1 : (x < 0) ? -1 : 0;
45 inline T MpMin(T x, T y) {
46 return (x < y) ? x : y;
49 inline T MpMax(T x, T y) {
50 return (x > y) ? x : y;
55 inline int even(
int x) {
return !(x & 1); }
56 inline int odd(
int x) {
return (x & 1); }
58 void Wigner3jm(RealType l1, RealType l2, RealType l3, RealType m1,
59 RealType& m2min, RealType& m2max, RealType* thrcof,
int ndim,