Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes


top source mg_repeat

result = mg_repeat(vec, nreps)

Repeats a vector nreps times.


vec in required type=vector

vector to repeat

nreps in required type=integer

number of times to repeat vector


For example, repeat an index vector twice times:

IDL> print, mg_repeat(indgen(3), 2) 0 1 2 0 1 2

File attributes

Modification date: Tue Sep 13 16:46:35 2011
Lines: 22
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.