HiRep 0.1
Loading...
Searching...
No Matches
spin_matrix.h File Reference

Type definitions and macros for spin_matrix. More...

#include "suN_types.h"
#include "suN.h"
#include "gamma_spinor.h"
Include dependency graph for spin_matrix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  suNf_spin_matrix
 

Macros

#define _spinmatrix_zero(r)
 
#define _spinmatrix_assign_row(r, s, i)
 
#define _spinmatrix_add(r, s, t)
 
#define _spinmatrix_sub(r, s, t)
 
#define _spinmatrix_g5(s, r)
 
#define _g5_spinmatrix(s, r)
 
#define _spinmatrix_g0(s, r)
 
#define _g0_spinmatrix(s, r)
 
#define _spinmatrix_g1(s, r)
 
#define _g1_spinmatrix(s, r)
 
#define _spinmatrix_g2(s, r)
 
#define _g2_spinmatrix(s, r)
 
#define _spinmatrix_g3(s, r)
 
#define _g3_spinmatrix(s, r)
 
#define _spinmatrix_g0g5(s, r)
 
#define _g0g5_spinmatrix(s, r)
 
#define _spinmatrix_g5g0(s, r)
 
#define _g5g0_spinmatrix(s, r)
 
#define _spinmatrix_g5g1(s, r)
 
#define _g5g1_spinmatrix(s, r)
 
#define _spinmatrix_g5g2(s, r)
 
#define _g5g2_spinmatrix(s, r)
 
#define _spinmatrix_g5g3(s, r)
 
#define _g5g3_spinmatrix(s, r)
 
#define _spinmatrix_g0g1(s, r)
 
#define _g0g1_spinmatrix(s, r)
 
#define _spinmatrix_g0g2(s, r)
 
#define _g0g2_spinmatrix(s, r)
 
#define _spinmatrix_g0g3(s, r)
 
#define _g0g3_spinmatrix(s, r)
 
#define _spinmatrix_g5g0g1(s, r)
 
#define _g5g0g1_spinmatrix(s, r)
 
#define _spinmatrix_g5g0g2(s, r)
 
#define _g5g0g2_spinmatrix(s, r)
 
#define _spinmatrix_g5g0g3(s, r)
 
#define _g5g0g3_spinmatrix(s, r)
 
#define _spinmatrix_mul_trace(k, r, s)
 
#define _spinmatrix_mul_trace_assign(k, r, s)
 
#define _spinmatrix_mul_trace_re(k, r, s)
 

Detailed Description

Type definitions and macros for spin_matrix.

Macro Definition Documentation

◆ _g0_spinmatrix

#define _g0_spinmatrix ( s,
r )
Value:
_spinor_minus_f((s).c[0], (r).c[2]); \
_spinor_minus_f((s).c[1], (r).c[3]); \
_spinor_minus_f((s).c[2], (r).c[0]); \
_spinor_minus_f((s).c[3], (r).c[1])

◆ _g0g1_spinmatrix

#define _g0g1_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[1]); \
_spinor_i_minus_f((s).c[1], (r).c[0]); \
_spinor_i_plus_f((s).c[2], (r).c[3]); \
_spinor_i_plus_f((s).c[3], (r).c[2])

◆ _g0g2_spinmatrix

#define _g0g2_spinmatrix ( s,
r )
Value:
_spinor_minus_f((s).c[0], (r).c[1]); \
_spinor_plus_f((s).c[1], (r).c[0]); \
_spinor_plus_f((s).c[2], (r).c[3]); \
_spinor_minus_f((s).c[3], (r).c[2])

◆ _g0g3_spinmatrix

#define _g0g3_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[0]); \
_spinor_i_plus_f((s).c[1], (r).c[1]); \
_spinor_i_plus_f((s).c[2], (r).c[2]); \
_spinor_i_minus_f((s).c[3], (r).c[3])

◆ _g0g5_spinmatrix

#define _g0g5_spinmatrix ( s,
r )
Value:
_spinor_plus_f((s).c[0], (r).c[2]); \
_spinor_plus_f((s).c[1], (r).c[3]); \
_spinor_minus_f((s).c[2], (r).c[0]); \
_spinor_minus_f((s).c[3], (r).c[1]);

◆ _g1_spinmatrix

#define _g1_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[3]); \
_spinor_i_minus_f((s).c[1], (r).c[2]); \
_spinor_i_plus_f((s).c[2], (r).c[1]); \
_spinor_i_plus_f((s).c[3], (r).c[0])

◆ _g2_spinmatrix

#define _g2_spinmatrix ( s,
r )
Value:
_spinor_minus_f((s).c[0], (r).c[3]); \
_spinor_plus_f((s).c[1], (r).c[2]); \
_spinor_plus_f((s).c[2], (r).c[1]); \
_spinor_minus_f((s).c[3], (r).c[0])

◆ _g3_spinmatrix

#define _g3_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[2]); \
_spinor_i_plus_f((s).c[1], (r).c[3]); \
_spinor_i_plus_f((s).c[2], (r).c[0]); \
_spinor_i_minus_f((s).c[3], (r).c[1])

◆ _g5_spinmatrix

#define _g5_spinmatrix ( s,
r )
Value:
(s).c[0] = (r).c[0]; \
(s).c[1] = (r).c[1]; \
_spinor_minus_f((s).c[2], (r).c[2]); \
_spinor_minus_f((s).c[3], (r).c[3])

◆ _g5g0_spinmatrix

#define _g5g0_spinmatrix ( s,
r )
Value:
_spinor_minus_f((s).c[0], (r).c[2]); \
_spinor_minus_f((s).c[1], (r).c[3]); \
(s).c[2] = (r).c[0]; \
(s).c[3] = (r).c[1]

◆ _g5g0g1_spinmatrix

#define _g5g0g1_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[1]); \
_spinor_i_minus_f((s).c[1], (r).c[0]); \
_spinor_i_minus_f((s).c[2], (r).c[3]); \
_spinor_i_minus_f((s).c[3], (r).c[2])

◆ _g5g0g2_spinmatrix

#define _g5g0g2_spinmatrix ( s,
r )
Value:
_spinor_minus_f((s).c[0], (r).c[1]); \
(s).c[1] = (r).c[0]; \
_spinor_minus_f((s).c[2], (r).c[3]); \
(s).c[3] = (r).c[2]

◆ _g5g0g3_spinmatrix

#define _g5g0g3_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[0]); \
_spinor_i_plus_f((s).c[1], (r).c[1]); \
_spinor_i_minus_f((s).c[2], (r).c[2]); \
_spinor_i_plus_f((s).c[3], (r).c[3])

◆ _g5g1_spinmatrix

#define _g5g1_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[3]); \
_spinor_i_minus_f((s).c[1], (r).c[2]); \
_spinor_i_minus_f((s).c[2], (r).c[1]); \
_spinor_i_minus_f((s).c[3], (r).c[0])

◆ _g5g2_spinmatrix

#define _g5g2_spinmatrix ( s,
r )
Value:
_spinor_minus_f((s).c[0], (r).c[3]); \
(s).c[1] = (r).c[2]; \
_spinor_minus_f((s).c[2], (r).c[1]); \
(s).c[3] = (r).c[0]

◆ _g5g3_spinmatrix

#define _g5g3_spinmatrix ( s,
r )
Value:
_spinor_i_minus_f((s).c[0], (r).c[2]); \
_spinor_i_plus_f((s).c[1], (r).c[3]); \
_spinor_i_minus_f((s).c[2], (r).c[0]); \
_spinor_i_plus_f((s).c[3], (r).c[1])

◆ _spinmatrix_add

#define _spinmatrix_add ( r,
s,
t )
Value:
_spinor_add_f((r).c[0], (s).c[0], (t).c[0]); \
_spinor_add_f((r).c[1], (s).c[1], (t).c[1]); \
_spinor_add_f((r).c[2], (s).c[2], (t).c[2]); \
_spinor_add_f((r).c[3], (s).c[3], (t).c[3])

◆ _spinmatrix_assign_row

#define _spinmatrix_assign_row ( r,
s,
i )
Value:
(r).c[i] = (s)

◆ _spinmatrix_g0

#define _spinmatrix_g0 ( s,
r )
Value:
_spinor_g0_f((s).c[0], (r).c[0]); \
_spinor_g0_f((s).c[1], (r).c[1]); \
_spinor_g0_f((s).c[2], (r).c[2]); \
_spinor_g0_f((s).c[3], (r).c[3])

◆ _spinmatrix_g0g1

#define _spinmatrix_g0g1 ( s,
r )
Value:
_spinor_g0g1_f((s).c[0], (r).c[0]); \
_spinor_g0g1_f((s).c[1], (r).c[1]); \
_spinor_g0g1_f((s).c[2], (r).c[2]); \
_spinor_g0g1_f((s).c[3], (r).c[3])

◆ _spinmatrix_g0g2

#define _spinmatrix_g0g2 ( s,
r )
Value:
_spinor_g0g2_f((s).c[0], (r).c[0]); \
_spinor_g0g2_f((s).c[1], (r).c[1]); \
_spinor_g0g2_f((s).c[2], (r).c[2]); \
_spinor_g0g2_f((s).c[3], (r).c[3])

◆ _spinmatrix_g0g3

#define _spinmatrix_g0g3 ( s,
r )
Value:
_spinor_g0g3_f((s).c[0], (r).c[0]); \
_spinor_g0g3_f((s).c[1], (r).c[1]); \
_spinor_g0g3_f((s).c[2], (r).c[2]); \
_spinor_g0g3_f((s).c[3], (r).c[3])

◆ _spinmatrix_g0g5

#define _spinmatrix_g0g5 ( s,
r )
Value:
_spinor_g0g5_f((s).c[0], (r).c[0]); \
_spinor_g0g5_f((s).c[1], (r).c[1]); \
_spinor_g0g5_f((s).c[2], (r).c[2]); \
_spinor_g0g5_f((s).c[3], (r).c[3])

◆ _spinmatrix_g1

#define _spinmatrix_g1 ( s,
r )
Value:
_spinor_g1_f((s).c[0], (r).c[0]); \
_spinor_g1_f((s).c[1], (r).c[1]); \
_spinor_g1_f((s).c[2], (r).c[2]); \
_spinor_g1_f((s).c[3], (r).c[3])

◆ _spinmatrix_g2

#define _spinmatrix_g2 ( s,
r )
Value:
_spinor_g2_f((s).c[0], (r).c[0]); \
_spinor_g2_f((s).c[1], (r).c[1]); \
_spinor_g2_f((s).c[2], (r).c[2]); \
_spinor_g2_f((s).c[3], (r).c[3])

◆ _spinmatrix_g3

#define _spinmatrix_g3 ( s,
r )
Value:
_spinor_g3_f((s).c[0], (r).c[0]); \
_spinor_g3_f((s).c[1], (r).c[1]); \
_spinor_g3_f((s).c[2], (r).c[2]); \
_spinor_g3_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5

#define _spinmatrix_g5 ( s,
r )
Value:
_spinor_g5_f((s).c[0], (r).c[0]); \
_spinor_g5_f((s).c[1], (r).c[1]); \
_spinor_g5_f((s).c[2], (r).c[2]); \
_spinor_g5_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g0

#define _spinmatrix_g5g0 ( s,
r )
Value:
_spinor_g5g0_f((s).c[0], (r).c[0]); \
_spinor_g5g0_f((s).c[1], (r).c[1]); \
_spinor_g5g0_f((s).c[2], (r).c[2]); \
_spinor_g5g0_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g0g1

#define _spinmatrix_g5g0g1 ( s,
r )
Value:
_spinor_g5g0g1_f((s).c[0], (r).c[0]); \
_spinor_g5g0g1_f((s).c[1], (r).c[1]); \
_spinor_g5g0g1_f((s).c[2], (r).c[2]); \
_spinor_g5g0g1_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g0g2

#define _spinmatrix_g5g0g2 ( s,
r )
Value:
_spinor_g5g0g2_f((s).c[0], (r).c[0]); \
_spinor_g5g0g2_f((s).c[1], (r).c[1]); \
_spinor_g5g0g2_f((s).c[2], (r).c[2]); \
_spinor_g5g0g2_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g0g3

#define _spinmatrix_g5g0g3 ( s,
r )
Value:
_spinor_g5g0g3_f((s).c[0], (r).c[0]); \
_spinor_g5g0g3_f((s).c[1], (r).c[1]); \
_spinor_g5g0g3_f((s).c[2], (r).c[2]); \
_spinor_g5g0g3_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g1

#define _spinmatrix_g5g1 ( s,
r )
Value:
_spinor_g5g1_f((s).c[0], (r).c[0]); \
_spinor_g5g1_f((s).c[1], (r).c[1]); \
_spinor_g5g1_f((s).c[2], (r).c[2]); \
_spinor_g5g1_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g2

#define _spinmatrix_g5g2 ( s,
r )
Value:
_spinor_g5g2_f((s).c[0], (r).c[0]); \
_spinor_g5g2_f((s).c[1], (r).c[1]); \
_spinor_g5g2_f((s).c[2], (r).c[2]); \
_spinor_g5g2_f((s).c[3], (r).c[3])

◆ _spinmatrix_g5g3

#define _spinmatrix_g5g3 ( s,
r )
Value:
_spinor_g5g3_f((s).c[0], (r).c[0]); \
_spinor_g5g3_f((s).c[1], (r).c[1]); \
_spinor_g5g3_f((s).c[2], (r).c[2]); \
_spinor_g5g3_f((s).c[3], (r).c[3])

◆ _spinmatrix_mul_trace

#define _spinmatrix_mul_trace ( k,
r,
s )
Value:
do { \
_complex_0(k); \
_spinor_prod_assign_f((k), (r).c[0], (s).c[0]); \
_spinor_prod_assign_f((k), (r).c[1], (s).c[1]); \
_spinor_prod_assign_f((k), (r).c[2], (s).c[2]); \
_spinor_prod_assign_f((k), (r).c[3], (s).c[3]); \
} while (0)

◆ _spinmatrix_mul_trace_assign

#define _spinmatrix_mul_trace_assign ( k,
r,
s )
Value:
do { \
_spinor_prod_assign_f((k), (r).c[0], (s).c[0]); \
_spinor_prod_assign_f((k), (r).c[1], (s).c[1]); \
_spinor_prod_assign_f((k), (r).c[2], (s).c[2]); \
_spinor_prod_assign_f((k), (r).c[3], (s).c[3]); \
} while (0)

◆ _spinmatrix_mul_trace_re

#define _spinmatrix_mul_trace_re ( k,
r,
s )
Value:
do { \
double _tmpVAR; \
(k) = 0; \
_spinor_prod_re_f((_tmpVAR), (r).c[0], (s).c[0]); \
(k) += _tmpVAR; \
_spinor_prod_re_f((_tmpVAR), (r).c[1], (s).c[1]); \
(k) += _tmpVAR; \
_spinor_prod_re_f((_tmpVAR), (r).c[2], (s).c[2]); \
(k) += _tmpVAR; \
_spinor_prod_re_f((_tmpVAR), (r).c[3], (s).c[3]); \
(k) += _tmpVAR; \
} while (0)

◆ _spinmatrix_sub

#define _spinmatrix_sub ( r,
s,
t )
Value:
_spinor_sub_f((r).c[0], (s).c[0], (t).c[0]); \
_spinor_sub_f((r).c[1], (s).c[1], (t).c[1]); \
_spinor_sub_f((r).c[2], (s).c[2], (t).c[2]); \
_spinor_sub_f((r).c[3], (s).c[3], (t).c[3])

◆ _spinmatrix_zero

#define _spinmatrix_zero ( r)
Value:
_spinor_zero_f((r).c[0]); \
_spinor_zero_f((r).c[1]); \
_spinor_zero_f((r).c[2]); \
_spinor_zero_f((r).c[3])