next up previous contents
Next: Bit Manipulation Functions Up: New HPF Reduction Functions Previous: New HPF Reduction Functions

 

Example of New Reduction Functions

All functions operate on arrays, for example, IALL(A) is the same as

 ...(IAND(IAND(IAND(A(1),A(2)),A(3)),A(4)),...)

IANY(A) is the same as

 ...(IOR(IOR(IOR(A(1),A(2)),A(3)),A(4)),...)

IPARITY(A) is the same as

 ...(IEOR(IEOR(IEOR(A(1),A(2)),A(3)),A(4)),...)

PARITY is not bitwise and is used with LOGICAL valued expressions. PARITY(A) is

 A(1).NEQV.A(2).NEQV.A(3).NEQV.A(4). ...

For example,

 PARITY((/F,T,F,T,F/))

is .FALSE. whereas,

 PARITY((/F,T,F,T,T/))

is .TRUE..

Return to corresponding overview page gif


next up previous contents
Next: Bit Manipulation Functions Up: New HPF Reduction Functions Previous: New HPF Reduction Functions

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.