# VML Pack/Unpack Functions

This section describes VML functions which convert vectors with unit increment to and from vectors with positive increment indexing, vector indexing and mask indexing (see Appendix “Vector Arguments in VML” for details on vector indexing methods).

Table “VML Pack/Unpack Functions” lists available VML Pack/Unpack functions, together with data types and indexing methods associated with them.

VML Pack/Unpack Functions
Function Short Name | Data Types | Indexing Methods | Description
--- | --- | --- | ---
Pack | `s, d` | `I,V,M` | Gathers elements of arrays, indexed by different methods.
Unpack | `s, d` | `I,V,M` | Scatters vector elements to arrays with different indexing.