SUNphi  1.0
Compl.hpp File Reference

Header file for the definition of complex numbers. More...

#include <tens/TensComp.hpp>
#include <smet/Bind.hpp>

Go to the source code of this file.

Classes

struct  SUNphi::Compl
 

Functions

Conditional< 0, decltype(maybeUnused(NCOMPL)), void > SUNphi::maybeUnusedFD ()
 
template<typename T >
decltype(auto) SUNphi::reIm (T &&ref, const int id)
 
template<typename T >
decltype(auto) SUNphi::real (T &&ref)
 Returns a reference to the real part.
 
template<typename T >
decltype(auto) SUNphi::imag (T &&ref)
 Returns a reference to the imag part.
 

Variables

constexpr const int SUNphi::NCOMPL = 2
 
constexpr int SUNphi::REAL_PART_ID
 Index of the real part of a Compl. More...
 
constexpr int SUNphi::IMAG_PART_ID
 Index of the imag part of a Compl. More...
 

Detailed Description

Header file for the definition of complex numbers.

Definition in file Compl.hpp.

Function Documentation

Conditional< 0, decltype(maybeUnused(hasTwin< CnCol >)), void > SUNphi::maybeUnusedFD ( )

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCOMPL

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of ALIGNMENT

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NDIR

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NDUMMY_VOLUME

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NSPIN

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NRW_Spin

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCN_Spin

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< RwSpin >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< CnSpin >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCOL

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NRW_Col

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of NCN_Col

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< RwCol >

Forward declaration of a dummy function, used to suppress "Unused variable" warning

Returns
the type of hasTwin< CnCol >
template<typename T >
decltype(auto) SUNphi::reIm ( T &&  ref,
const int  id 
)

Get a reference to the Compl component id of ref

Parameters
refQuantity to be bind
idComponent to bind

Definition at line 14 of file Compl.hpp.

Variable Documentation

constexpr int SUNphi::IMAG_PART_ID
Initial value:
=
1

Index of the imag part of a Compl.

Definition at line 28 of file Compl.hpp.

constexpr const int SUNphi::NCOMPL = 2

Maximal value for TensKind of type Compl

Definition at line 14 of file Compl.hpp.

constexpr int SUNphi::REAL_PART_ID
Initial value:
=
0

Index of the real part of a Compl.

Definition at line 17 of file Compl.hpp.