[ HPF Home | Versions | Compilers | Projects | Publications | Applications | Benchmarks | Events | Contact ] |
Optional Arguments. DIM, MASK, SEGMENT, EXCLUSIVE
Description. Computes a segmented bitwise logical exclusive OR scan along
dimension DIM of ARRAY.
Class. Transformational function.
Arguments.
ARRAY must be of type integer. It must not be scalar.
DIM (optional) must be scalar and of type integer with a value in the range , where is the rank of ARRAY.
MASK (optional) must be of type logical and must be conformable with ARRAY.
SEGMENT (optional) must be of type logical and must have the same shape as ARRAY.
EXCLUSIVE (optional) must be of type logical and must be scalar.
Result Type, Type Parameter, and Shape. Same as ARRAY.
Result Value.
Element of the result has the value IPARITY((/ /))
where is the (possibly empty) set of elements of ARRAY
selected to contribute to by the rules stated in
Section .
Example. IPARITY_PREFIX( (/1,2,3,4,5/), SEGMENT= (/F,F,F,T,T/) ) is ,1,3,0,4,1,, plus 1filll
-1;1,3,0,4,1,; plus 1filll
-1:1,3,0,4,1,: plus 1filll
-1.1,3,0,4,1,. plus 1filll
-11,3,0,4,1, plus 1filll-1.
©2000-2006 Rice University | [ Contact Us | HiPerSoft | Computer Science ] |