VEC_ALL_IN(ARG1, ARG2)

Purpose

Tests whether each element of a given vector is within a given range.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) real vector.
ARG2
An INTENT(IN) vector of the same type as ARG1.

Result type and attributes

The result is an INTEGER(4).

Result value

The result is 1 if all elements of ARG1 have values less than or equal to the value of the corresponding element of ARG2, and greater than or equal to the negative of the value of the corresponding element of ARG2. Otherwise, the result is 0.