VEC_CONVERT(V, MOLD)

Purpose

Converts a vector to a vector of a given type.

Class

Pure function

Argument type and attributes

V
must be an INTENT(IN) vector.
MOLD
must be an INTENT(IN) vector. If it is a variable, it need not be defined.

Result type and attributes

The result is a vector of the same type as MOLD.

Result value

The result is as if it were on the left-hand side of an intrinsic assignment with V on the right-hand side.

Note:
This intrinsic function can be used in initialization and specification expressions. It is also the only vector intrinsic function that is not in the C Altivec specification.