./
cmreplicate.pro
Replicates an array or scalar into a larger array, as REPLICATE does.
Examples
x = [0,1,2]
help, cmreplicate(x, [2,2])
INT = Array[3, 2, 2]
Explanation: The 3-vector x is replicated 2x2 times.
x = 5L
help, cmreplicate(x, [2,2])
LONG = Array[2, 2]
Explanation: The scalar x is replicated 2x2 times.
SEE ALSO:
REPLICATE
Author information
- History
Written, CM, 11 Feb 2000 Fixed case when ARRAY is array of structs, CM, 23 Feb 2000 Apparently IDL 5.3 can't return from execute(). Fixed, CM, 24 Feb 2000 Corrected small typos in documentation, CM, 22 Jun 2000
Routines
File attributes
Modification date: | Fri Jan 9 19:59:00 2015 |
Lines: | 50 |
Docformat: | idl verbatim |