VEC_CMPGT(ARG1, ARG2)

Purpose

Returns a vector containing the results of a greater-than comparison between each set of corresponding elements of the given vectors.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) integer vector, real vector, or unsigned vector.
ARG2
An INTENT(IN) vector of the same type as ARG1.

Result type and attributes

If ARG1 is an INTEGER(1) vector or UNSIGNED(1) vector, then the result is an UNSIGNED(1) vector. If ARG1 is an INTEGER(2) vector or UNSIGNED(2) vector, then the result is an UNSIGNED(2) vector. Otherwise, the result is an UNSIGNED(4) vector.

Result value

For each element of the result, the value of each bit is 1 if the value of the corresponding element of ARG1 is greater than the value of the corresponding element of ARG2. Otherwise, the value of each bit is 0.