The Fortran PACK intrinsic appears to return a rank one array of the same size as its source, regardless of the MASK used. The excess array elements appear uninitialized.
will return something that looks like:
when I believe it should return:
Is this not correct?
If the current PACK is correct, how do I know how many elements matching my MASK are returned?