VEC_MULO(ARG1, ARG2)

Purpose

Returns a vector containing the results of multiplying every second corresponding set of elements of the given vectors, beginning with the second element.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) INTEGER(1) vector, INTEGER(2) vector, UNSIGNED(1) vector, or UNSIGNED(2) vector.
ARG2
An INTENT(IN) vector of the same type as ARG1.

Result type and attributes

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

Result value

Assume that the elements of each vector are numbered beginning with 0. For each element n of the result vector, the value is the product of the value of element 2n+1 of ARG1 and the value of element 2n+1 of ARG2.