Next: , Previous: Generic Names, Up: Datatypes


3.2 Specific Types for Color and Precision

According to the chosen color and precision, names for specific floating point types are constructed from names for generic types. Thus QDP_ColorMatrix becomes QDP_PC_ColorMatrix, where the precision P is F or D according to the table below


Abbreviation Description


F single precision
D double precision

and C is 2, 3, or N, if color is a consideration, as listed below.


Abbreviation Description


2 SU(2)
3 SU(3)
N SU(N)

If the datatype carries no color, the color label is omitted. Integers also have no precision label. Likewise for functions, if none of the arguments carry color, the color label is omitted, and if all numeric arguments are integers, the precision label is omitted. For example, the type QDP_F3_DiracFermion describes a single-precision four-spin, three-color spinor field. The general color choice N can also be used for specialized SU(2) or SU(3) at the cost of degrading performance.