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

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.