VEC_CVF(ARG1)

Purpose

Converts a REAL(4) vector into a REAL(8) vector, and vice versa.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) real vector

Result type and attributes

The following table describes the types of the result.

Table 1. Types of the returned value and function argument
result ARG1
REAL(4) vector An INTENT(IN) REAL(8) vector
REAL(8) vector An INTENT(IN) REAL(4) vector

Result Value

When ARG1 is a REAL(4) vector, each element of the result is equal to the corresponding element of ARG1, converted to REAL(8). The second and fourth elements of ARG1 are not used.

When ARG1 is a REAL(8) vector, the first and third elements of the result are equal to the corresponding elements of ARG1, converted to REAL(4). The values of the second and fourth elements of the result vector are undefined.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us