Changeset 231 for trunk/SRC/Matrix/union.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Matrix/union.pro
r163 r231 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; 6 ; @file_comments 3 ; @file_comments 7 4 ; calculate the union between 2 matrices of whole numbers 8 5 ; 9 ; @categories 6 ; @categories 10 7 ; Calculation 11 8 ; 12 ; @param a {in}{required} arrays of positive integers, which need 9 ; @param a {in}{required} 10 ; arrays of positive integers, which need 13 11 ; not be sorted. Duplicate elements are ignored, as they have no 14 12 ; effect on the result … … 16 14 ; @param b {in}{required} see a 17 15 ; 18 ; @returns tableau 16 ; @returns 17 ; tableau 19 18 ; 20 ; @restrictions The empty set is denoted by an array with the first element equal to21 ; -1.19 ; @restrictions 20 ; The empty set is denoted by an array with the first element equal to -1. 22 21 ; 23 22 ; @restrictions These functions will not be efficient on sparse sets with wide … … 26 25 ; resulting set. 27 26 ; 28 ; @examples a = [2,4,6,8] 29 ; b = [6,1,3,2] 30 ; union(a,b) = [ 1, 2, 3, 4, 6, 8] ; Elements in either set 27 ; @examples 28 ; IDL> a = [2,4,6,8] 29 ; IDL> b = [6,1,3,2] 30 ; IDL> union(a,b) = [ 1, 2, 3, 4, 6, 8] ; Elements in either set 31 31 ; 32 ; @history http://www.dfanning.com/tips/set_operations.html 32 ; @history 33 ; http://www.dfanning.com/tips/set_operations.html 33 34 ; 34 ; @version $Id$ 35 ; @version 36 ; $Id$ 35 37 ; 36 38 ;- 37 ;------------------------------------------------------------ 38 ;------------------------------------------------------------ 39 ;------------------------------------------------------------ 39 ; 40 40 FUNCTION union, a, b 41 41 ;
Note: See TracChangeset
for help on using the changeset viewer.