idllib

Personal IDL library for M. Galloy

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

analysis/

mg_repeat.pro


top source mg_repeat

result = mg_repeat(vec, nreps)

Repeats a vector nreps times.

Parameters

vec in required type=vector

vector to repeat

nreps in required type=integer

number of times to repeat vector

Examples

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.