Changeset 133 for trunk/SRC/Matrix/inter.pro
- Timestamp:
- 07/07/06 11:57:27 (18 years ago)
- Location:
- trunk/SRC/Matrix
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Matrix/inter.pro
r132 r133 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:inter6 5 ; 7 ; PURPOSE:calcule l''intersection de 2 matrices D'ENTIERS POSITIFS 6 ; @file_comments 7 ; calculate the intersection between 2 matrixes of whole numbers 8 8 ; 9 ; CATEGORY:calcule sur les matrices9 ; @categories calculation of matrixes 10 10 ; 11 ; CALLING SEQUENCE:res=inter(a,b) 12 ; 13 ; INPUTS:a et b:arrays of positive integers, which need not to be 11 ; @param a {in}{required} arrays of positive integers, which need not to be 14 12 ; sorted. Duplicate elements are ignored, as they have noeffect on the 15 13 ; result 16 14 ; 17 ; KEYWORD PARAMETERS:15 ; @param b {in}{required} see a 18 16 ; 19 ; OUTPUTS:tableau17 ; @returns tableau 20 18 ; 21 ; COMMON BLOCKS: 22 ; 23 ; SIDE EFFECTS: 24 ; 25 ; The empty set is denoted by an array with the first element equal to 19 ; @restrictions The empty set is denoted by an array with the first element equal to 26 20 ; -1. 27 21 ; 28 ; RESTRICTIONS: 29 ; 30 ; These functions will not be efficient on sparse sets with wide 22 ; @restrictions These functions will not be efficient on sparse sets with wide 31 23 ; ranges, as they trade memory for efficiency. The HISTOGRAM function 32 24 ; is used, which creates arrays of size equal to the range of the 33 25 ; resulting set. 34 26 ; 35 ; EXAMPLE: 27 ; @examples a = [2,4,6,8] 28 ; b = [6,1,3,2] 29 ; inter(a,b) = [ 2, 6] ; Common elements 36 30 ; 37 ; a = [2,4,6,8] 38 ; b = [6,1,3,2] 39 ; inter(a,b) = [ 2, 6] ; Common elements 31 ; @history http://www.dfanning.com/tips/set_operations.html 40 32 ; 41 ; MODIFICATION HISTORY:33 ; @version $Id$ 42 34 ; 43 ; http://www.dfanning.com/tips/set_operations.html44 35 ;- 45 36 ;------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.