Previous: Function Details, Up: Function Details


5.1 Functions involving shifts

Shifting

Syntax QDP_T_eq_sT(Type *r, Type *a, QDP_Shift s, QDP_ShiftDir d, subset);
QDP_T_veq_sT(Type *r[], Type *a[], QDP_Shift s[], QDP_ShiftDir d[], subset, int n);


Meaning r = shift(a)


Type I, R, C, V, H, D, M, P

Left multiplication by shifted color matrix

Syntax QDP_T_eq_sM_times_T(Type *r, QDP_ColorMatrix *a, Type *b, QDP_Shift s, QDP_ShiftDir d, subset);


Meaning r = shift(a) * b


Type V, H, D, M, P

Left multiplication of shifted field by color matrix

Syntax QDP_T_eq_M_times_sT(Type *r, QDP_ColorMatrix *a, Type *b, QDP_Shift s, QDP_ShiftDir d, subset);


Meaning r = a * shift(b)


Type V, H, D, M, P

Left multiplication by color matrix then shift

Syntax QDP_T_eq_sM_times_sT(Type *r, QDP_ColorMatrix *a, Type *b, QDP_Shift s, QDP_ShiftDir d, subset);


Meaning r = shift(a * b)


Type V, H, D, M, P