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

#include <complex_quda.h>

+ Inheritance diagram for quda::complex< short >:

Public Types

typedef short value_type
 

Public Member Functions

__host__ __device__ complex ()
 
__host__ __device__ complex (const short &re, const short &im=float())
 
__host__ __device__ complex (const complex< short > &z)
 
__host__ __device__ complex< short > & operator+= (const complex< short > z)
 
__host__ __device__ complex< short > & operator-= (const complex< short > z)
 
__host__ __device__ short real () const volatile
 
__host__ __device__ short imag () const volatile
 
__host__ __device__ short real () const
 
__host__ __device__ short imag () const
 
__host__ __device__ void real (short re) volatile
 
__host__ __device__ void imag (short im) volatile
 
__host__ __device__ void real (short re)
 
__host__ __device__ void imag (short im)
 
 operator std::complex< short > () const
 
template<typename T >
__host__ __device__ operator complex< T > () const
 

Detailed Description

Definition at line 753 of file complex_quda.h.

Member Typedef Documentation

◆ value_type

typedef short quda::complex< short >::value_type

Definition at line 756 of file complex_quda.h.

Constructor & Destructor Documentation

◆ complex() [1/3]

__host__ __device__ quda::complex< short >::complex ( )
inline

Definition at line 758 of file complex_quda.h.

◆ complex() [2/3]

__host__ __device__ quda::complex< short >::complex ( const short &  re,
const short &  im = float() 
)
inline

Definition at line 760 of file complex_quda.h.

◆ complex() [3/3]

__host__ __device__ quda::complex< short >::complex ( const complex< short > &  z)
inline

Definition at line 766 of file complex_quda.h.

Member Function Documentation

◆ imag() [1/4]

__host__ __device__ short quda::complex< short >::imag ( ) const
inline

Definition at line 785 of file complex_quda.h.

◆ imag() [2/4]

__host__ __device__ short quda::complex< short >::imag ( ) const volatile
inline

Definition at line 783 of file complex_quda.h.

◆ imag() [3/4]

__host__ __device__ void quda::complex< short >::imag ( short  im)
inline

Definition at line 789 of file complex_quda.h.

◆ imag() [4/4]

__host__ __device__ void quda::complex< short >::imag ( short  im) volatile
inline

Definition at line 787 of file complex_quda.h.

◆ operator complex< T >()

template<typename T >
__host__ __device__ quda::complex< short >::operator complex< T > ( ) const
inline

Definition at line 794 of file complex_quda.h.

◆ operator std::complex< short >()

quda::complex< short >::operator std::complex< short > ( ) const
inline

Definition at line 792 of file complex_quda.h.

◆ operator+=()

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

Definition at line 768 of file complex_quda.h.

◆ operator-=()

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

Definition at line 775 of file complex_quda.h.

◆ real() [1/4]

__host__ __device__ short quda::complex< short >::real ( ) const
inline

Definition at line 784 of file complex_quda.h.

◆ real() [2/4]

__host__ __device__ short quda::complex< short >::real ( ) const volatile
inline

Definition at line 782 of file complex_quda.h.

◆ real() [3/4]

__host__ __device__ void quda::complex< short >::real ( short  re)
inline

Definition at line 788 of file complex_quda.h.

◆ real() [4/4]

__host__ __device__ void quda::complex< short >::real ( short  re) volatile
inline

Definition at line 786 of file complex_quda.h.


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