next up previous contents
Next: Reverse Strided Alignment Example Up: Alignment and Distribution Previous: Visualisation of Transposed Alignment

 

Strided Alignment Example

Align each element of D with every second element of E:

    REAL, DIMENSION(5)  :: D
    REAL, DIMENSION(10) :: E
!HPF$ ALIGN D(:) WITH E(1::2)

This says: tex2html_wrap_inline28767 i, elements D(i) and E(i*2-1) are aligned. For example, D(3) and E(5). Alignment could also be written:

!HPF$ ALIGN D(i) WITH E(i*2-1)

tex2html_wrap28787

This alignment is suitable for,

 D = D + E(::2) ! All local

For more information, click here gif


next up previous contents
Next: Reverse Strided Alignment Example Up: Alignment and Distribution Previous: Visualisation of Transposed Alignment

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.