MERGE(3f)

DESCRIPTION
Select values from two arrays according to a logical mask. The result is equal to TSOURCE if MASK is .TRUE., or equal to FSOURCE if it is .FALSE..

STANDARD
Fortran 95 and later

CLASS
Elemental function

SYNTAX
RESULT = MERGE(TSOURCE, FSOURCE, MASK)

ARGUMENTS

TSOURCE May be of any type. FSOURCE Shall be of the same type and type parameters as TSOURCE. MASK Shall be of type LOGICAL.

RETURN VALUE
The result is of the same type and type parameters as TSOURCE.

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).