<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Matrix/

union.pro

calculate the union between 2 matrices of whole numbers

topunion Calculation

result = union(a, b)

Return value

tableau

Parameters

a        in required

arrays of positive integers, which need not be sorted. Duplicate elements are ignored, as they have no effect on the result

b        in required

see a

Examples

IDL> a = [2,4,6,8] IDL> b = [6,1,3,2] IDL> union(a,b) = [ 1, 2, 3, 4, 6, 8] ; Elements in either set

Version history

Version

$Id: union.pro 237 2007-03-26 15:37:03Z pinsard $

History

Known issues

Restrictions

Statistics

McCabe cyclic 3
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.