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


4.4 Creating and destroying lattice fields

All QDP fields are creted and destroyed with the following functions. The alignment and type of memory (on architectures that support it) is detrmined by the default alignment and flags (see Optimization Calls).

Creating a lattice field

Syntax Type * QDP_create_T(void);


Meaning Creates lattice field of type Type.


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


Example u = QDP_create_M();

In prototype specifications throughout this document the notation Type specifies the generic or specific datatype name matching the abbreviation T according to the table in Datatypes.

Destroying a lattice field

Syntax void QDP_destroy_T(Type *a);


Meaning Frees memory associated with field a.


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


Example QDP_destroy_M(u);