VEC_SPLAT(ARG1, ARG2)

Purpose

Returns a vector that has all of its elements set to a given value.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) vector.
ARG2
An INTENT(IN) integer. Its value must be specified by an initialization expression that is greater than or equal to 0, and less than the number of elements in ARG1.

Result type and attributes

The result is of the same type as ARG1.

Result value

Assume that the elements of ARG1 are numbered beginning with 0. The value of the element of ARG1 specified by ARG2 is given to each element of the result vector.