Next: , Previous: Naming Conventions for Data Parallel Functions, Up: Naming Conventions for Data Parallel Functions


Constant Arguments

In some cases it is desirable to keep an argument constant over the entire subset. For example the function

QDP_V_eq_c_times_V(c,z,b,s)

multiplies a lattice field of color vectors by a complex constant as in

c[x] = z*b[x]

for x in subset s. In this case we specify that the argument is constant (coordinate-independent) by writing the type abbreviation in lower case: c.