The intrinsic pack function packs an array into a vector, selecting elements based on a given mask. The function has two forms
PACK(array, mask)
PACK(array, mask, vector)
(that is, the vector argument is optional).
In both cases array is an array, and mask of logical type and conformable with...