Changeset 373 for trunk/SRC/Matrix/union.pro
- Timestamp:
- 08/08/08 16:11:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Matrix/union.pro
r372 r373 2 2 ; 3 3 ; @file_comments 4 ; calculatethe union between 2 matrices of whole numbers4 ; find the union between 2 matrices of whole numbers 5 5 ; 6 ; see also <pro>difference</pro> and <pro>inter</pro>. 7 6 8 ; @categories 7 9 ; Calculation … … 16 18 ; 17 19 ; @returns 18 ; tableau 19 ; 20 ; @restrictions 21 ; The empty set is denoted by an array with the first element equal to -1. 20 ; an array containing the set of values in a and b. 22 21 ; 23 22 ; @restrictions … … 32 31 ; IDL> a = [2,4,6,8] 33 32 ; IDL> b = [6,1,3,2] 34 ; IDL> union(a,b) = [ 1, 2, 3, 4, 6, 8] ; Elements in either set 33 ; IDL> res=union(a,b) 34 ; IDL> print, res 35 ; 1 2 3 4 5 6 36 8 37 ; this is the list ao all elements in either sets. 35 38 ; 36 39 ; @history
Note: See TracChangeset
for help on using the changeset viewer.