QDP++

Reality complex. More...

#include <qdp_reality.h>

Public Member Functions

 RComplex ()
 ~RComplex ()
template<class T1, class T2>
 RComplex (const RScalar< T1 > &_re, const RScalar< T2 > &_im)
 Construct from two reality scalars.
template<class T1, class T2>
 RComplex (const T1 &_re, const T2 &_im)
 Construct from two scalars.
template<class T1>
RComplexoperator= (const RScalar< T1 > &rhs)
 RComplex = RScalar.
template<class T1>
RComplexoperator+= (const RScalar< T1 > &rhs)
 RComplex += RScalar.
template<class T1>
RComplexoperator-= (const RScalar< T1 > &rhs)
 RComplex -= RScalar.
template<class T1>
RComplexoperator*= (const RScalar< T1 > &rhs)
 RComplex *= RScalar.
template<class T1>
RComplexoperator/= (const RScalar< T1 > &rhs)
 RComplex /= RScalar.
template<class T1>
RComplexoperator= (const RComplex< T1 > &rhs)
 RComplex = RComplex.
template<class T1>
RComplexoperator+= (const RComplex< T1 > &rhs)
 RComplex += RComplex.
template<class T1>
RComplexoperator-= (const RComplex< T1 > &rhs)
 RComplex -= RComplex.
template<class T1>
RComplexoperator*= (const RComplex< T1 > &rhs)
 RComplex *= RComplex.
template<class T1>
RComplexoperator/= (const RComplex< T1 > &rhs)
 RComplex /= RComplex.
 RComplex (const RComplex &a)
 Deep copy constructor.
T & real ()
const T & real () const
T & imag ()
const T & imag () const

Detailed Description

template<class T>
class QDP::RComplex< T >

Reality complex.

All fields are either complex or scalar reality

Definition at line 252 of file qdp_reality.h.

Constructor & Destructor Documentation

◆ RComplex() [1/4]

template<class T>
QDP::RComplex< T >::RComplex ( )
inline

Definition at line 255 of file qdp_reality.h.

◆ ~RComplex()

template<class T>
QDP::RComplex< T >::~RComplex ( )
inline

Definition at line 256 of file qdp_reality.h.

◆ RComplex() [2/4]

template<class T>
template<class T1, class T2>
QDP::RComplex< T >::RComplex ( const RScalar< T1 > & _re,
const RScalar< T2 > & _im )
inline

Construct from two reality scalars.

Definition at line 260 of file qdp_reality.h.

◆ RComplex() [3/4]

template<class T>
template<class T1, class T2>
QDP::RComplex< T >::RComplex ( const T1 & _re,
const T2 & _im )
inline

Construct from two scalars.

Definition at line 264 of file qdp_reality.h.

◆ RComplex() [4/4]

template<class T>
QDP::RComplex< T >::RComplex ( const RComplex< T > & a)
inline

Deep copy constructor.

Definition at line 377 of file qdp_reality.h.

Member Function Documentation

◆ imag() [1/2]

template<class T>
T & QDP::RComplex< T >::imag ( )
inline

Definition at line 383 of file qdp_reality.h.

Referenced by QDP::adj(), QDP::adjMultiply(), QDP::adjMultiplyAdj(), QDP::conj(), QDP::copy_site(), QDP::copymask(), QDP::fill_gaussian(), QDP::fill_random(), QDP::gather_sites(), QDP::getSite(), QDP::imag(), QDP::imagTrace(), QDP::isfinite(), QDP::isinf(), QDP::isnan(), QDP::isnormal(), QDP::localColorInnerProduct(), QDP::localInnerProduct(), QDP::localInnerProductReal(), QDP::localNorm2(), QDP::multiplyAdj(), QDP::operator*(), QDP::operator*(), QDP::operator*(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator*=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator*=(), QDP::operator+(), QDP::operator+(), QDP::operator+(), QDP::operator+(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator+=(), QDP::operator-(), QDP::operator-(), QDP::operator-(), QDP::operator-(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator-=(), QDP::operator/(), QDP::operator/(), QDP::operator/(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator/=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator/=(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator=(), QDP::operator>>(), QDP::outerProduct(), QDP::outerProduct(), QDP::outerProduct(), QDP::sum(), QDP::timesI(), QDP::timesMinusI(), QDP::trace(), QDP::traceMultiply(), QDP::transpose(), QDP::where(), QDP::where(), QDP::where(), and QDP::zero_rep().

◆ imag() [2/2]

template<class T>
const T & QDP::RComplex< T >::imag ( ) const
inline

Definition at line 384 of file qdp_reality.h.

◆ operator*=() [1/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator*= ( const RComplex< T1 > & rhs)
inline

RComplex *= RComplex.

Definition at line 352 of file qdp_reality.h.

◆ operator*=() [2/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator*= ( const RScalar< T1 > & rhs)
inline

RComplex *= RScalar.

Definition at line 299 of file qdp_reality.h.

◆ operator+=() [1/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator+= ( const RComplex< T1 > & rhs)
inline

RComplex += RComplex.

Definition at line 332 of file qdp_reality.h.

◆ operator+=() [2/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator+= ( const RScalar< T1 > & rhs)
inline

RComplex += RScalar.

Definition at line 281 of file qdp_reality.h.

◆ operator-=() [1/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator-= ( const RComplex< T1 > & rhs)
inline

RComplex -= RComplex.

Definition at line 342 of file qdp_reality.h.

◆ operator-=() [2/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator-= ( const RScalar< T1 > & rhs)
inline

RComplex -= RScalar.

Definition at line 290 of file qdp_reality.h.

◆ operator/=() [1/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator/= ( const RComplex< T1 > & rhs)
inline

RComplex /= RComplex.

Definition at line 365 of file qdp_reality.h.

◆ operator/=() [2/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator/= ( const RScalar< T1 > & rhs)
inline

RComplex /= RScalar.

Definition at line 309 of file qdp_reality.h.

◆ operator=() [1/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator= ( const RComplex< T1 > & rhs)
inline

RComplex = RComplex.

Set equal to another RComplex

Definition at line 322 of file qdp_reality.h.

◆ operator=() [2/2]

template<class T>
template<class T1>
RComplex & QDP::RComplex< T >::operator= ( const RScalar< T1 > & rhs)
inline

RComplex = RScalar.

Set the real part and zero the imag part

Definition at line 271 of file qdp_reality.h.

◆ real() [1/2]

template<class T>
T & QDP::RComplex< T >::real ( )
inline

Definition at line 380 of file qdp_reality.h.

Referenced by QDP::adj(), QDP::adjMultiply(), QDP::adjMultiplyAdj(), QDP::conj(), QDP::copy_site(), QDP::copymask(), QDP::fill_gaussian(), QDP::fill_random(), QDP::gather_sites(), QDP::getSite(), QDP::isfinite(), QDP::isinf(), QDP::isnan(), QDP::isnormal(), QDP::localColorInnerProduct(), QDP::localInnerProduct(), QDP::localInnerProductReal(), QDP::localNorm2(), QDP::multiplyAdj(), QDP::operator*(), QDP::operator*(), QDP::operator*(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator*=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator*=(), QDP::operator+(), QDP::operator+(), QDP::operator+(), QDP::operator+(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator+=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator+=(), QDP::operator-(), QDP::operator-(), QDP::operator-(), QDP::operator-(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator-=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator-=(), QDP::operator/(), QDP::operator/(), QDP::operator/(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator/=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator/=(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator=(), QDP::RComplex< typename SinglePrecType< T >::Type_t >::operator=(), QDP::operator>>(), QDP::outerProduct(), QDP::outerProduct(), QDP::outerProduct(), QDP::real(), QDP::realTrace(), QDP::sum(), QDP::timesI(), QDP::timesMinusI(), QDP::trace(), QDP::traceMultiply(), QDP::transpose(), QDP::where(), QDP::where(), QDP::where(), and QDP::zero_rep().

◆ real() [2/2]

template<class T>
const T & QDP::RComplex< T >::real ( ) const
inline

Definition at line 381 of file qdp_reality.h.


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