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