VEC_ADD(ARG1, ARG2)

Purpose

Returns a vector containing the sums of each set of corresponding elements of the given vectors.

Class

Elemental function

Argument type and attributes

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

Result type and attributes

The result is of the same type as ARG1.

Result value

The value of each element of the result is the sum of the corresponding elements of ARG1 and ARG2. For integer vectors and unsigned vectors, the arithmetic is modular.