Next: Array Manipulation Function Up: Intrinsic Functions Previous: Array Reduction Functions

Array Construction Function

The functions MERGE, SPREAD, PACK and UNPACK construct new arrays from input arrays. MERGE combines two conformable arrays into one array by an element-wise choice based on a logical mask. SPREAD constructs an array from several copies of an actual argument. PACK and UNPACK, respectively, gather and scatter the elements of a one-dimensional array to form another array specified by a logical mask.


zbozkus@
Thu Jul 6 21:09:19 EDT 1995