Next: , Previous: Shifts, Up: Shifts


Creating displacement shifts

Syntax QDP_Shift QDP_create_shift(int d[]);


Meaning Creates a shift defined by the displacement vector d.


Example int d[4] = {0,1,2,0};
QDP_Shift knight[4][4];
knight[2][3] = QDP_create_shift(d);

The displacement vector points from the recieving site towards the sender (or the opposite if later used with the QDP_backward direction). Calling with a displacement vector {1,0,0,0} would reproduce the shift QDP_neighbor[0].