[ HPF Home | Versions | Compilers | Projects | Publications | Applications | Benchmarks | Events | Contact ]



Next:
Local Routines Written Up: Local Routines Written Previous: LOCAL_LINDEX(ARRAYDIM, PROC)

LOCAL_UINDEX(ARRAY, DIM, PROC)

Optional argument. PROC.
Description. Returns the highest local index of all blocks of an array dummy argument in a given dimension on a processor.
Class. Pure function.
Arguments.

ARRAY may be of any type; it must be a dummy array that is associated with a global HPF array actual argument.

DIM must be scalar and of type integer with a value in the range , where is the rank of ARRAY.

PROC (optional) must be scalar and of type integer. It must be a valid processor number.
Result Type, Type Parameter, and Shape. The result is a rank-one array of type default integer and size , where is the value returned by LOCAL_BLKCNT(ARRAY, DIM [, PROC])
Result Value.
*

(i): The value of LOCAL_UINDEX(ARRAY, DIM, PROC) has a value whose th component is the local index of the last element of the th block in dimension DIM of ARRAY on processor PROC.

(ii): LOCAL_UINDEX(ARRAY, DIM) returns the same value as LOCAL_UINDEX(ARRAY, DIM, PROC=MY_PROCESSOR()).


Examples. With the same declarations as in the example under LOCAL_BLKCNT, on the physical processor corresponding to PR(2,4) the value returned by LOCAL_UINDEX(X, DIM=1) is ,1,2,3,4,, plus 1filll -1;1,2,3,4,; plus 1filll -1:1,2,3,4,: plus 1filll -1.1,2,3,4,. plus 1filll -11,2,3,4, plus 1filll-1; the value of LOCAL_UINDEX(X, DIM=2) is ,2,3,4,, plus 1filll -1;2,3,4,; plus 1filll -1:2,3,4,: plus 1filll -1.2,3,4,. plus 1filll -12,3,4, plus 1filll-1.
new



©2000-2006 Rice University [ Contact Us | HiPerSoft | Computer Science ]

paula@erc.msstate.edu
Thu Dec 8 16:17:11 CST 1994