Grid 0.7.0
Dirac.h File Reference

Go to the source code of this file.

Data Structures

class  GammaL

Functions

 NAMESPACE_BEGIN (Grid)
Gamma adj (const Gamma &g)
Gamma operator* (const Gamma &g1, const Gamma &g2)
template<class vtype>
accelerator_inline auto operator* (const Gamma &G, const iScalar< vtype > &arg) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type
template<class vtype, int N>
accelerator_inline auto operator* (const Gamma &G, const iVector< vtype, N > &arg) -> typename std::enable_if< matchGridTensorIndex< iVector< vtype, N >, SpinorIndex >::notvalue, iVector< vtype, N > >::type
template<class vtype, int N>
accelerator_inline auto operator* (const Gamma &G, const iMatrix< vtype, N > &arg) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type
template<class vtype>
accelerator_inline auto operator* (const iScalar< vtype > &arg, const Gamma &G) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type
template<class vtype, int N>
accelerator_inline auto operator* (const iMatrix< vtype, N > &arg, const Gamma &G) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type
template<class vtype>
accelerator_inline auto operator* (const GammaL &gl, const iVector< vtype, Ns > &arg) -> typename std::enable_if< matchGridTensorIndex< iVector< vtype, Ns >, SpinorIndex >::value, iVector< vtype, Ns > >::type
template<class vtype>
accelerator_inline auto operator* (const GammaL &gl, const iMatrix< vtype, Ns > &arg) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, Ns >, SpinorIndex >::value, iMatrix< vtype, Ns > >::type
template<class vtype>
accelerator_inline auto operator* (const iMatrix< vtype, Ns > &arg, const GammaL &gl) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, Ns >, SpinorIndex >::value, iMatrix< vtype, Ns > >::type
template<class vtype>
accelerator_inline auto operator* (const GammaL &gl, const iScalar< vtype > &arg) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type
template<class vtype, int N>
accelerator_inline auto operator* (const GammaL &gl, const iVector< vtype, N > &arg) -> typename std::enable_if< matchGridTensorIndex< iVector< vtype, N >, SpinorIndex >::notvalue, iVector< vtype, N > >::type
template<class vtype, int N>
accelerator_inline auto operator* (const GammaL &gl, const iMatrix< vtype, N > &arg) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type
template<class vtype>
accelerator_inline auto operator* (const iScalar< vtype > &arg, const GammaL &gl) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type
template<class vtype, int N>
accelerator_inline auto operator* (const iMatrix< vtype, N > &arg, const GammaL &gl) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type
 NAMESPACE_END (Grid)

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ adj()

Gamma adj ( const Gamma & g)
inline

Definition at line 43 of file Dirac.h.

References Gamma::adj, and Gamma::g.

◆ operator*() [1/14]

Gamma operator* ( const Gamma & g1,
const Gamma & g2 )
inline

Definition at line 51 of file Dirac.h.

References Gamma::g, and Gamma::mul.

◆ operator*() [2/14]

template<class vtype>
accelerator_inline auto operator* ( const Gamma & G,
const iScalar< vtype > & arg ) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type

Definition at line 58 of file Dirac.h.

References iScalar< vtype >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [3/14]

template<class vtype, int N>
accelerator_inline auto operator* ( const Gamma & G,
const iVector< vtype, N > & arg ) -> typename std::enable_if< matchGridTensorIndex< iVector< vtype, N >, SpinorIndex >::notvalue, iVector< vtype, N > >::type

Definition at line 67 of file Dirac.h.

References iVector< vtype, N >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [4/14]

template<class vtype, int N>
accelerator_inline auto operator* ( const Gamma & G,
const iMatrix< vtype, N > & arg ) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type

Definition at line 78 of file Dirac.h.

References iMatrix< vtype, N >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [5/14]

template<class vtype>
accelerator_inline auto operator* ( const iScalar< vtype > & arg,
const Gamma & G ) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type

Definition at line 91 of file Dirac.h.

References iScalar< vtype >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [6/14]

template<class vtype, int N>
accelerator_inline auto operator* ( const iMatrix< vtype, N > & arg,
const Gamma & G ) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type

Definition at line 100 of file Dirac.h.

References iMatrix< vtype, N >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [7/14]

template<class vtype>
accelerator_inline auto operator* ( const GammaL & gl,
const iVector< vtype, Ns > & arg ) -> typename std::enable_if< matchGridTensorIndex< iVector< vtype, Ns >, SpinorIndex >::value, iVector< vtype, Ns > >::type

Definition at line 125 of file Dirac.h.

References accelerator_inline, and SpinorIndex.

◆ operator*() [8/14]

template<class vtype>
accelerator_inline auto operator* ( const GammaL & gl,
const iMatrix< vtype, Ns > & arg ) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, Ns >, SpinorIndex >::value, iMatrix< vtype, Ns > >::type

Definition at line 140 of file Dirac.h.

References accelerator_inline, Ns, and SpinorIndex.

◆ operator*() [9/14]

template<class vtype>
accelerator_inline auto operator* ( const iMatrix< vtype, Ns > & arg,
const GammaL & gl ) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, Ns >, SpinorIndex >::value, iMatrix< vtype, Ns > >::type

Definition at line 158 of file Dirac.h.

References accelerator_inline, Ns, and SpinorIndex.

◆ operator*() [10/14]

template<class vtype>
accelerator_inline auto operator* ( const GammaL & gl,
const iScalar< vtype > & arg ) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type

Definition at line 177 of file Dirac.h.

References iScalar< vtype >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [11/14]

template<class vtype, int N>
accelerator_inline auto operator* ( const GammaL & gl,
const iVector< vtype, N > & arg ) -> typename std::enable_if< matchGridTensorIndex< iVector< vtype, N >, SpinorIndex >::notvalue, iVector< vtype, N > >::type

Definition at line 186 of file Dirac.h.

References iVector< vtype, N >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [12/14]

template<class vtype, int N>
accelerator_inline auto operator* ( const GammaL & gl,
const iMatrix< vtype, N > & arg ) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type

Definition at line 197 of file Dirac.h.

References iMatrix< vtype, N >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [13/14]

template<class vtype>
accelerator_inline auto operator* ( const iScalar< vtype > & arg,
const GammaL & gl ) -> typename std::enable_if< matchGridTensorIndex< iScalar< vtype >, SpinorIndex >::notvalue, iScalar< vtype > >::type

Definition at line 210 of file Dirac.h.

References iScalar< vtype >::_internal, accelerator_inline, and SpinorIndex.

◆ operator*() [14/14]

template<class vtype, int N>
accelerator_inline auto operator* ( const iMatrix< vtype, N > & arg,
const GammaL & gl ) -> typename std::enable_if< matchGridTensorIndex< iMatrix< vtype, N >, SpinorIndex >::notvalue, iMatrix< vtype, N > >::type

Definition at line 219 of file Dirac.h.

References iMatrix< vtype, N >::_internal, accelerator_inline, and SpinorIndex.

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )