Changeset 373 for trunk/SRC/Matrix/different.pro
- Timestamp:
- 08/08/08 16:11:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Matrix/different.pro
r372 r373 2 2 ; 3 3 ; @file_comments 4 ; calculate the different elements of 2 matrix of positive whole numbers. 4 ; find the different elements of 2 matrixes of positive whole numbers. 5 ; 6 ; see also <pro>union</pro> and <pro>inter</pro>. 5 7 ; 6 8 ; @categories … … 16 18 ; 17 19 ; @returns 18 ; tableau20 ; an array containing the set of values in only a. 19 21 ; 20 ; @restrictions21 22 ; The empty set is denoted by an array with the first element equal to 22 23 ; -1. … … 32 33 ; IDL> a = [2,4,6,8] 33 34 ; IDL> b = [6,1,3,2] 34 ; IDL> different(a,b) = [ 4, 8] ; Elements in A but not in B 35 ; 36 ; IDL> res=different(a,b) 37 ; 4 8 38 ; Right because 4 and 8 are in a but not in b ! 39 ; 40 ; IDL> res=different(b,a) 41 ; IDL> print,res 42 ; 1 3 43 ; 44 ; Right because 1 and 3 are in b but not in a ! 35 45 ; 36 46 ; @history
Note: See TracChangeset
for help on using the changeset viewer.