Referencing Coarray Images

Data on other images is normally referenced by cosubscripts enclosed in square brackets.

For coarray images, each set of cosubscripts maps to an image index, which is an integer between one and the number of images, in the same way as a set of array subscripts maps to a position in array element order.

To find the image index for each image, specify intrinsic function THIS_IMAGE() with no arguments.

To find the set of subscript indices that corresponds to the current image for a coarray z, specify THIS_IMAGE(z).

To find the image index that corresponds to a set of cosubscript indices sub for a coarray z, specify intrinsic function IMAGE_INDEX(z,sub).

To find the number of images, specify intrinsic function NUM_IMAGES.

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.