9.270. UNPACK

9.270 UNPACK — Unpack an array of rank one into an array

Description:
Store the elements of VECTOR in an array of higher rank.
Standard:
Fortran 95 and later
Class:
Transformational function
Syntax:
RESULT = UNPACK(VECTOR, MASK, FIELD)
Arguments:
VECTOR Shall be an array of any type and rank one. It shall have at least as many elements as MASK has TRUE values.
MASK Shall be an array of type LOGICAL.
FIELD Shall be of the same type as VECTOR and have the same shape as MASK.
Return value:
The