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..


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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.