*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/merge (3)              
Title
Content
Arch
Section
 

Contents


MERGE(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     MERGE - Chooses an	alternative value according to the value of a mask

SYNOPSIS    [Toc]    [Back]

     MERGE ([TSOURCE=]tsource, [FSOURCE=]fsource, [MASK=]mask)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The MERGE intrinsic function can be used for array	construction.  It
     chooses an	alternative value according to the value of mask.  This
     function accepts the following arguments:

     tsource   May be of any type

     fsource   Must be of the same type	and type parameters as tsource

     mask      Must be of type logical

     MERGE is an elemental function.  The name of this intrinsic cannot	be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	has the	same type and type parameters as tsource.  The
     result is tsource if mask is true and fsource otherwise.

EXAMPLES    [Toc]    [Back]

     Example 1:	 Assume	that tsource, fsource, and mask	are arrays.  Array
     tsource is	as follows:

	| 1 6 5	|

	| 2 4 6	|

     Array fsource is as follows:

	| 0 3 2	|

	| 7 4 8	|

     Array mask	is as follows:

	| T F T	|

	| F F T	|

     Also assume that the letter T represents the value	true and the letter
     F represents the value false.  The	statement MERGE(tsource, fsource,
     mask) generates the following:

	| 1 3 5	|

	| 7 4 6	|

     Example 2:	 The value of MERGE(1.0,0,0,k>0) is [1.0] for k	= 5.

     Example 3:	 The value of MERGE(1.0,0,0,k>0) is [0.0] for k	= -2.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

MERGE(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     MERGE - Chooses an	alternative value according to the value of a mask

SYNOPSIS    [Toc]    [Back]

     MERGE ([TSOURCE=]tsource, [FSOURCE=]fsource, [MASK=]mask)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The MERGE intrinsic function can be used for array	construction.  It
     chooses an	alternative value according to the value of mask.  This
     function accepts the following arguments:

     tsource   May be of any type

     fsource   Must be of the same type	and type parameters as tsource

     mask      Must be of type logical

     MERGE is an elemental function.  The name of this intrinsic cannot	be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	has the	same type and type parameters as tsource.  The
     result is tsource if mask is true and fsource otherwise.

EXAMPLES    [Toc]    [Back]

     Example 1:	 Assume	that tsource, fsource, and mask	are arrays.  Array
     tsource is	as follows:

	| 1 6 5	|

	| 2 4 6	|

     Array fsource is as follows:

	| 0 3 2	|

	| 7 4 8	|

     Array mask	is as follows:

	| T F T	|

	| F F T	|

     Also assume that the letter T represents the value	true and the letter
     F represents the value false.  The	statement MERGE(tsource, fsource,
     mask) generates the following:

	| 1 3 5	|

	| 7 4 6	|

     Example 2:	 The value of MERGE(1.0,0,0,k>0) is [1.0] for k	= 5.

     Example 3:	 The value of MERGE(1.0,0,0,k>0) is [0.0] for k	= -2.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
getty Linux alternative Linux getty
mask IRIX Returns a bit mask
sigblock Linux manipulate the signal mask
sigsetmask Tru64 Set the current signal mask
sigprocmask Tru64 Set the current signal mask
sigsetmask OpenBSD set current signal mask
ffs Tru64 General: Finds the first set bit in a mask
umask HP-UX set and get file creation mask
sigsetmask HP-UX set current signal mask
msmask IRIX specifies a multisample mask
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service