HP MLIB User's Guide Vol. 2 7th Ed.
830 HP MLIB User’s Guide
vsPackI, vsPackV, vsPackM, vdPackI, vdPackV, vdPackM Pack (gather) a vector with specified indexing into a
contiguous vector
1+(n-1)*inca
for vsPackI and vdPackI
1 plus the maximum index ia[i] (i=0 to n-1)
for vsPackV and vdPackV
n
for vsPackM and vdPackM.
inca Index increment for vsPackI and vdPackI.
ia Array containing the index vector for vsPackV and
vdPackV. Length of ia is at least n.
ma Array containing the mask vector for vsPackM and
vdPackM. Length of ma is at least n.
Output y Array receiving the contiguous output vector. Length of
y is at least n for vsPackI, vdPackI, vsPackV, and
vdPackV; and at least the number (at most n) of
non-zero elements in the mask array ma for vsPackM
and vdPackM.