Vector built-in functions

Individual elements of vectors can be accessed and manipulated by using the vector built-in functions. You must enable the vector support to use these built-in functions. This section provides description of the supported vector built-in functions.

This section uses pseudo code description to represent the built-in function syntax, as shown below:

d = builtin_name(a, b, c)
In the description,
  • d represents the return value of the built-in function.
  • a, b, and c represent the arguments of the built-in function.
  • builtin_name is the name of the built-in function.
For example, the syntax for the built-in function Start of changevector double vec_xld2(long, double*);End of change is represented by d = vec_xld2(a, b).

Allowed data types for the return value and arguments of the built-in functions are provided in the table after the description of the built-in functions.