su2hmc
Loading...
Searching...
No Matches
thrust_complex.h
Go to the documentation of this file.
1
9#ifndef TCMPLX
10#define TCMPLX
11#include <thrust/complex.h>
12using thrust::complex;
13#undef conj
14//#undef complex
16#define Complex_f complex<float>
18#define Complex complex<double>
19
20
22#define cexp(z) thrust::exp(z)
24#define cimag(z) z.imag()
26#define creal(z) z.real()
28#define I Complex(0.0,1.0)
30#define I_f Complex_f(0.0f,1.0f)
38template <typename T> __device__ __forceinline__ T conj(const T& z);
39#endif
__device__ __forceinline__ T conj(const T &z)
Complex Conjugation.
Definition cusu2hmc.cu:33