| 43 | template <typename T, bool conjugate> |
| 44 | struct maybe_conj { |
| 45 | __device__ static __inline__ T run(T x) { |
| 46 | if (conjugate) { |
| 47 | return Eigen::numext::conj(x); |
| 48 | } else { |
| 49 | return x; |
| 50 | } |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | // Partial specializations for Gpu types used to store complex numbers. |