IMAGE_INDEX

Inquiry Intrinsic Function (Generic): Converts cosubscripts to an image index.

構文

result = IMAGE_INDEX (coarray,sub)

coarray

(Input) Must be a coarray; it can be of any type.

sub

(Input) Must be a rank-one integer array of size equal to the corank of coarray.

Results

The result is default integer scalar. The result is the index of the corresponding image if the value of sub is a valid sequence of cosubscripts for coarray, the result is the index of the corresponding image. Otherwise, the result is zero.

If coarray D is declared as D [0:*] and coarray C is declared as C(5,10) [10, 0:9, 0:*], IMAGE_INDEX (D, [0]) has the value 1 and IMAGE_INDEX (C, [3, 1, 2]) has the value 213 (on any image).


このヘルプトピックについてのフィードバックを送信

© 1996-2011 Intel Corporation. 無断での引用、転載を禁じます。