Grid 0.7.0
Grid::GpuComplex< pair > Class Template Reference

#include <Grid_gpu_vec.h>

Public Types

typedef decltype(z.x) Real

Public Member Functions

accelerator_inline GpuComplex ()=default
accelerator_inline GpuComplex (Real re, Real im)
accelerator_inline GpuComplex (const GpuComplex &zz)
accelerator_inline Real real (void) const
accelerator_inline Real imag (void) const
accelerator_inline GpuComplexoperator= (const Zero &zz)
accelerator_inline GpuComplexoperator*= (const GpuComplex &r)
accelerator_inline GpuComplexoperator+= (const GpuComplex &r)
accelerator_inline GpuComplexoperator-= (const GpuComplex &r)

Data Fields

pair z

Friends

accelerator_inline GpuComplex operator+ (const GpuComplex &lhs, const GpuComplex &rhs)
accelerator_inline GpuComplex operator- (const GpuComplex &lhs, const GpuComplex &rhs)
accelerator_inline GpuComplex operator* (const GpuComplex &lhs, const GpuComplex &rhs)
accelerator_inline GpuComplex real_mult (const GpuComplex &l, const GpuComplex &r)
std::ostream & operator<< (std::ostream &stream, const GpuComplex o)

Detailed Description

template<class pair>
class Grid::GpuComplex< pair >

Definition at line 60 of file Grid_gpu_vec.h.

Member Typedef Documentation

◆ Real

template<class pair>
typedef decltype(z.x) Grid::GpuComplex< pair >::Real

Definition at line 63 of file Grid_gpu_vec.h.

Constructor & Destructor Documentation

◆ GpuComplex() [1/3]

template<class pair>
accelerator_inline Grid::GpuComplex< pair >::GpuComplex ( )
default

◆ GpuComplex() [2/3]

template<class pair>
accelerator_inline Grid::GpuComplex< pair >::GpuComplex ( Real re,
Real im )
inline

Definition at line 66 of file Grid_gpu_vec.h.

◆ GpuComplex() [3/3]

template<class pair>
accelerator_inline Grid::GpuComplex< pair >::GpuComplex ( const GpuComplex< pair > & zz)
inline

Definition at line 67 of file Grid_gpu_vec.h.

Member Function Documentation

◆ real()

template<class pair>
accelerator_inline Real Grid::GpuComplex< pair >::real ( void ) const
inline

Definition at line 68 of file Grid_gpu_vec.h.

Referenced by Grid::timesI(), Grid::timesI(), Grid::timesMinusI(), and Grid::timesMinusI().

◆ imag()

template<class pair>
accelerator_inline Real Grid::GpuComplex< pair >::imag ( void ) const
inline

Definition at line 69 of file Grid_gpu_vec.h.

Referenced by Grid::timesI(), Grid::timesI(), Grid::timesMinusI(), and Grid::timesMinusI().

◆ operator=()

template<class pair>
accelerator_inline GpuComplex & Grid::GpuComplex< pair >::operator= ( const Zero & zz)
inline

Definition at line 70 of file Grid_gpu_vec.h.

◆ operator*=()

template<class pair>
accelerator_inline GpuComplex & Grid::GpuComplex< pair >::operator*= ( const GpuComplex< pair > & r)
inline

Definition at line 71 of file Grid_gpu_vec.h.

◆ operator+=()

template<class pair>
accelerator_inline GpuComplex & Grid::GpuComplex< pair >::operator+= ( const GpuComplex< pair > & r)
inline

Definition at line 75 of file Grid_gpu_vec.h.

◆ operator-=()

template<class pair>
accelerator_inline GpuComplex & Grid::GpuComplex< pair >::operator-= ( const GpuComplex< pair > & r)
inline

Definition at line 79 of file Grid_gpu_vec.h.

◆ operator+

template<class pair>
accelerator_inline GpuComplex operator+ ( const GpuComplex< pair > & lhs,
const GpuComplex< pair > & rhs )
friend

Definition at line 83 of file Grid_gpu_vec.h.

◆ operator-

template<class pair>
accelerator_inline GpuComplex operator- ( const GpuComplex< pair > & lhs,
const GpuComplex< pair > & rhs )
friend

Definition at line 89 of file Grid_gpu_vec.h.

◆ operator*

template<class pair>
accelerator_inline GpuComplex operator* ( const GpuComplex< pair > & lhs,
const GpuComplex< pair > & rhs )
friend

Definition at line 95 of file Grid_gpu_vec.h.

◆ real_mult

template<class pair>
accelerator_inline GpuComplex real_mult ( const GpuComplex< pair > & l,
const GpuComplex< pair > & r )
friend

Definition at line 101 of file Grid_gpu_vec.h.

◆ operator<<

template<class pair>
std::ostream & operator<< ( std::ostream & stream,
const GpuComplex< pair > o )
friend

Definition at line 108 of file Grid_gpu_vec.h.

Field Documentation

◆ z


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