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

displaymath23495

and

displaymath23422

then

displaymath23497

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

equation11983

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


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

Adam Marshall ©University of Liverpool, 1996
Tue Nov 26 17:50:42 GMT 1996