next up previous contents
Next: Bit Manipulation Functions Up: HPF Intrinsics and Library 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)),...)

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

For more information, click here gif


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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.