VEC_CMPEQ(ARG1, ARG2)

Purpose

Returns a vector containing the results of comparing each set of corresponding elements of the given vectors for equality.

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 corresponding elements of ARG1 and ARG2 are equal. Otherwise, the value of each bit is 0.