indices/
mg_setdifference.pro
Routines
top mg_setdifference
result = mg_setdifference(ind1, ind2 [, count=long])
Find the difference of two sets of indices. A set of indices is
represented by an array of non-negative integers where a scalar -1L
indicates the empty set.
Return value
lonarr
or -1L
Parameters
- ind1 in required type=lonarr or -1L
array of indices where
-1L
indicates an empty set of indices- ind2 in required type=lonarr or -1L
array of indices where
-1L
indicates an empty set of indices
Keywords
- count out optional type=long
set to a named variable to return the number of elements in the difference
Examples
For example, try:
IDL> print, mg_setdifference([0, 3, 5, 6, 9], [3, 5])
0 6 9
File attributes
Modification date: | Wed May 14 15:07:14 2014 |
Lines: | 16 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.