Developer Reference

  • 2021.1
  • 12/04/2020
  • Public Content

Vector Indexing Methods

Classic VM mathematical functions work with unit stride. Strided VM mathematical functions work with positive increments. To accommodate arrays with more complicated indexing, you can gather the elements into a contiguous vector and then scatter them after the computation is complete.
VM Pack/Unpack functions use the following indexing methods to do this task:
  • positive increment
  • index vector
  • mask vector
The indexing method used in a particular function is indicated by the indexing modifier (see the description of the
field in Function Naming Conventions). For more information on the indexing methods, see Vector Arguments in VM.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at