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.
.
Fortran 90 and later
Elemental function
RESULT = MERGE(TSOURCE, FSOURCE, MASK)
TSOURCE | May be of any type. |
FSOURCE | Shall be of the same type and type parameters as TSOURCE. |
MASK | Shall be of type LOGICAL . |
The result is of the same type and type parameters as TSOURCE.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gfortran/MERGE.html