next up previous contents
Next: TRANSFER Intrinsic Up: Array Construction Intrinsics Previous: PACK Intrinsic

 

UNPACK Intrinsic

UNPACK(VECTOR,MASK,FIELD)

This function unpacks a vector into an array under a mask. FIELD, must conform to MASK and and must be of same type and kind as VECTOR. The result is the same shape as MASK.

If

displaymath28833

and

displaymath28760

then

displaymath28835

The highlighted elements originate from VECTOR and correspond to the .TRUE. values of MASK, the other values are from the corresponding elements of FIELD.

Also

equation13889

again highlighted elements correspond to the .TRUE. values of NOTMASK, the other values are from the corresponding elements of FIELD.

Return to corresponding overview page gif


next up previous contents
Next: TRANSFER Intrinsic Up: Array Construction Intrinsics Previous: PACK Intrinsic

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