Thrust
|
#include <thrust/complex.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
__host__ __device__ | complex (const T &re) |
__host__ __device__ | complex (const T &re, const T &im) |
complex ()=default | |
complex (const complex< T > &z)=default | |
template<typename U > | |
__host__ __device__ | complex (const complex< U > &z) |
__host__ __device__ | complex (const std::complex< T > &z) |
template<typename U > | |
__host__ __device__ | complex (const std::complex< U > &z) |
__host__ __device__ complex & | operator= (const T &re) |
complex & | operator= (const complex< T > &z)=default |
template<typename U > | |
__host__ __device__ complex & | operator= (const complex< U > &z) |
__host__ __device__ complex & | operator= (const std::complex< T > &z) |
template<typename U > | |
__host__ __device__ complex & | operator= (const std::complex< U > &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator+= (const complex< U > &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator-= (const complex< U > &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator*= (const complex< U > &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator/= (const complex< U > &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator+= (const U &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator-= (const U &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator*= (const U &z) |
template<typename U > | |
__host__ __device__ complex< T > & | operator/= (const U &z) |
__host__ __device__ T | real () const volatile |
__host__ __device__ T | imag () const volatile |
__host__ __device__ T | real () const |
__host__ __device__ T | imag () const |
__host__ __device__ void | real (T re) volatile |
__host__ __device__ void | imag (T im) volatile |
__host__ __device__ void | real (T re) |
__host__ __device__ void | imag (T im) |
__host__ | operator std::complex< T > () const |
complex
is the Thrust equivalent to std::complex
. It is functionally identical to it, but can also be used in device code which std::complex
currently cannot.
T | The type used to hold the real and imaginary parts. Should be float or double . Others types are not supported. |