su2hmc
Loading...
Searching...
No Matches
thrust_complex.h File Reference

Complex Header for CUDA. Sets macros for C compatability. More...

#include <thrust/complex.h>
Include dependency graph for thrust_complex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Complex_f   complex<float>
 Single precision complex number.
#define Complex   complex<double>
 Double precision complex number.
#define cexp(z)
 Exponentiate using C standard notation.
#define cimag(z)
 Extract Imaginary Component using C standard notation.
#define creal(z)
 Extract Real Component using C standard notation.
#define I   Complex(0.0,1.0)
 Define I in double precision using C standard notation.
#define I_f   Complex_f(0.0f,1.0f)
 Define I in single precision.

Functions

template<typename T>
__device__ __forceinline__ T conj (const T &z)
 Complex Conjugation.

Detailed Description

Complex Header for CUDA. Sets macros for C compatability.

We are also adding the macros for extracting the real, imaginary parts. This way they match the C standard library calls

Definition in file thrust_complex.h.

Macro Definition Documentation

◆ cexp

#define cexp ( z)
Value:
thrust::exp(z)

Exponentiate using C standard notation.

Definition at line 22 of file thrust_complex.h.

◆ cimag

#define cimag ( z)
Value:
z.imag()

Extract Imaginary Component using C standard notation.

Definition at line 24 of file thrust_complex.h.

◆ Complex

#define Complex   complex<double>

Double precision complex number.

Definition at line 18 of file thrust_complex.h.

◆ Complex_f

#define Complex_f   complex<float>

Single precision complex number.

Definition at line 16 of file thrust_complex.h.

◆ creal

#define creal ( z)
Value:
z.real()

Extract Real Component using C standard notation.

Definition at line 26 of file thrust_complex.h.

◆ I

#define I   Complex(0.0,1.0)

Define I in double precision using C standard notation.

Definition at line 28 of file thrust_complex.h.

◆ I_f

#define I_f   Complex_f(0.0f,1.0f)

Define I in single precision.

Definition at line 30 of file thrust_complex.h.