thrust
Public Types | Public Member Functions | List of all members
thrust::complex< T > Struct Template Reference

#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)
 
__host__ __device__ complex ()
 
__host__ __device__ complex (const complex< T > &z)
 
template<typename U >
__host__ __device__ complex (const complex< U > &z)
 
__host__ complex (const std::complex< T > &z)
 
template<typename U >
__host__ complex (const std::complex< U > &z)
 
__host__ __device__ complexoperator= (const T &re)
 
__host__ __device__ complexoperator= (const complex< T > &z)
 
template<typename U >
__host__ __device__ complexoperator= (const complex< U > &z)
 
__host__ complexoperator= (const std::complex< T > &z)
 
template<typename U >
__host__ complexoperator= (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
 

Detailed Description

template<typename T>
struct thrust::complex< T >

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.

Template Parameters
TThe type used to hold the real and imaginary parts. Should be float or double. Others types are not supported.

The documentation for this struct was generated from the following file: