Complex Header for CUDA. Sets macros for C compatability. More...
#include <thrust/complex.h>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. | |
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.
| #define cexp | ( | z | ) |
Exponentiate using C standard notation.
Definition at line 22 of file thrust_complex.h.
| #define cimag | ( | z | ) |
Extract Imaginary Component using C standard notation.
Definition at line 24 of file thrust_complex.h.
| #define Complex complex<double> |
Double precision complex number.
Definition at line 18 of file thrust_complex.h.
| #define Complex_f complex<float> |
Single precision complex number.
Definition at line 16 of file thrust_complex.h.
| #define creal | ( | z | ) |
Extract Real Component using C standard notation.
Definition at line 26 of file thrust_complex.h.
| #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.
| #define I_f Complex_f(0.0f,1.0f) |
Define I in single precision.
Definition at line 30 of file thrust_complex.h.