QUDA  v1.1.0
A library for QCD on GPUs
Public Types | Public Member Functions | List of all members
quda::complex< ValueType > Struct Template Reference

#include <complex_quda.h>

Public Types

typedef ValueType value_type
 

Public Member Functions

__host__ __device__ complex (const ValueType &re=ValueType(), const ValueType &im=ValueType())
 
template<class X >
__host__ __device__ complex (const complex< X > &z)
 
template<class X >
__host__ __device__ complex (const std::complex< X > &z)
 
template<typename T >
__host__ __device__ complex< ValueType > & operator= (const complex< T > z)
 
__host__ __device__ complex< ValueType > & operator+= (const complex< ValueType > z)
 
__host__ __device__ complex< ValueType > & operator-= (const complex< ValueType > z)
 
__host__ __device__ complex< ValueType > & operator*= (const complex< ValueType > z)
 
__host__ __device__ complex< ValueType > & operator/= (const complex< ValueType > z)
 
__host__ __device__ complex< ValueType > & operator*= (const ValueType z)
 
__host__ __device__ ValueType real () const volatile
 
__host__ __device__ ValueType imag () const volatile
 
__host__ __device__ ValueType real () const
 
__host__ __device__ ValueType imag () const
 
__host__ __device__ void real (ValueType) volatile
 
__host__ __device__ void imag (ValueType) volatile
 
__host__ __device__ void real (ValueType)
 
__host__ __device__ void imag (ValueType)
 

Detailed Description

template<typename ValueType>
struct quda::complex< ValueType >

Definition at line 368 of file complex_quda.h.

Member Typedef Documentation

◆ value_type

template<typename ValueType >
typedef ValueType quda::complex< ValueType >::value_type

Definition at line 371 of file complex_quda.h.

Constructor & Destructor Documentation

◆ complex() [1/3]

template<typename ValueType >
__host__ __device__ quda::complex< ValueType >::complex ( const ValueType &  re = ValueType(),
const ValueType &  im = ValueType() 
)
inline

Definition at line 374 of file complex_quda.h.

◆ complex() [2/3]

template<typename ValueType >
template<class X >
__host__ __device__ quda::complex< ValueType >::complex ( const complex< X > &  z)
inline

Definition at line 382 of file complex_quda.h.

◆ complex() [3/3]

template<typename ValueType >
template<class X >
__host__ __device__ quda::complex< ValueType >::complex ( const std::complex< X > &  z)
inline

Definition at line 390 of file complex_quda.h.

Member Function Documentation

◆ imag() [1/4]

template<typename ValueType >
__host__ __device__ ValueType quda::complex< ValueType >::imag ( ) const
inline

◆ imag() [2/4]

template<typename ValueType >
__host__ __device__ ValueType quda::complex< ValueType >::imag ( ) const volatile
inline

◆ imag() [3/4]

template<typename ValueType >
__host__ __device__ void quda::complex< ValueType >::imag ( ValueType  )
inline

◆ imag() [4/4]

template<typename ValueType >
__host__ __device__ void quda::complex< ValueType >::imag ( ValueType  ) volatile
inline

◆ operator*=() [1/2]

template<typename ValueType >
__host__ __device__ complex<ValueType>& quda::complex< ValueType >::operator*= ( const complex< ValueType >  z)
inline

Definition at line 423 of file complex_quda.h.

◆ operator*=() [2/2]

template<typename ValueType >
__host__ __device__ complex<ValueType>& quda::complex< ValueType >::operator*= ( const ValueType  z)
inline

Definition at line 437 of file complex_quda.h.

◆ operator+=()

template<typename ValueType >
__host__ __device__ complex<ValueType>& quda::complex< ValueType >::operator+= ( const complex< ValueType >  z)
inline

Definition at line 407 of file complex_quda.h.

◆ operator-=()

template<typename ValueType >
__host__ __device__ complex<ValueType>& quda::complex< ValueType >::operator-= ( const complex< ValueType >  z)
inline

Definition at line 415 of file complex_quda.h.

◆ operator/=()

template<typename ValueType >
__host__ __device__ complex<ValueType>& quda::complex< ValueType >::operator/= ( const complex< ValueType >  z)
inline

Definition at line 430 of file complex_quda.h.

◆ operator=()

template<typename ValueType >
template<typename T >
__host__ __device__ complex<ValueType>& quda::complex< ValueType >::operator= ( const complex< T >  z)
inline

Definition at line 399 of file complex_quda.h.

◆ real() [1/4]

template<typename ValueType >
__host__ __device__ ValueType quda::complex< ValueType >::real ( ) const
inline

◆ real() [2/4]

template<typename ValueType >
__host__ __device__ ValueType quda::complex< ValueType >::real ( ) const volatile
inline

◆ real() [3/4]

template<typename ValueType >
__host__ __device__ void quda::complex< ValueType >::real ( ValueType  )
inline

◆ real() [4/4]

template<typename ValueType >
__host__ __device__ void quda::complex< ValueType >::real ( ValueType  ) volatile
inline

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