mglib

Personal IDL library for M. Galloy

Directory: indices/

This directory contains routines for handling array indices.

MG_COMPLEMENT, MG_SETUNION, MG_SETINTERSECTION, and MG_SETDIFFERENCE perform set operations for non-negative integers with -1L representing the empty set. These are ideal for manipulating array indices.

MG_MAKERANGE is an easier way to create regularly spaced arrays by specifying start, stop, and increment values.

Contents

.pro files

mg_all.pro

Determine whether all elements of an array of logical values are true.

mg_any.pro

Determine whether any elements of an array of logical values is true.

mg_complement.pro

Returns the complement of an index array.

mg_makerange.pro

Create an array ranging from the startValue and stopping before the stopValue.

mg_setdifference.pro

Find the difference of two sets of indices.

mg_setintersection.pro

Find the intersection of two sets of indices.

mg_setunion.pro

Find the union of two sets of indices.

Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.