Up: Function Details


5.7 Ternary operations with fields

Addition or subtraction with integer scalar multiplication

Syntax QDP_I_eq_i_times_I_func_I(QDP_Int *r, QLA_Int *c, QDP_Int *a, QDP_Int *b, subset);


Meaning r = c * a +/- b


func plus, minus

Addition or subtraction with real scalar multiplication

Syntax QDP_T_eq_r_times_T_func_T(Type *r, QLA_Real *c, Type *a, Type *b, subset);
QDP_T_veq_r_times_T_func_T(Type *r[], QLA_Real c[], Type *a[], Type *b[], subset, int n);


Meaning r = c * a +/- b


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


func plus, minus

Addition or subtraction with complex scalar multiplication

Syntax QDP_T_eq_c_times_T_func_T(Type *r, QLA_Complex *c, Type *a, Type *b, subset);
QDP_T_veq_c_times_T_func_T(Type *r[], QLA_Complex c[], Type *a[], Type *b[], subset, int n);


Meaning r = c * a +/- b


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


func plus, minus