VEC_ABS(ARG1)

Purpose

Returns a vector containing the absolute values of the contents of the given vector.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) integer vector or real vector.

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 absolute value of the corresponding element of ARG1. For integer vectors, the arithmetic is modular.