Changeset 133 for trunk/SRC/Matrix/union.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/union.pro
r132 r133 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:union6 5 ; 7 ; PURPOSE:calcule l''union de 2 matrices D'ENTIERS POSITIFS 6 ; @file_comments 7 ; calculate tne union between 2 matrixes of whole numbers 8 8 ; 9 ; CATEGORY:calcule sur les matrices9 ; @categories calculation of matrixes 10 10 ; 11 ; CALLING SEQUENCE:res=union(a,b) 12 ; 13 ; INPUTS:a et b:arrays of positive integers, which need 11 ; @param a {in}{required} arrays of positive integers, which need 14 12 ; not be sorted. Duplicate elements are ignored, as they have no 15 13 ; effect on the 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 ; union(a,b) = [ 1, 2, 3, 4, 6, 8] ; Elements in either set 36 30 ; 37 ; a = [2,4,6,8] 38 ; b = [6,1,3,2] 39 ; union(a,b) = [ 1, 2, 3, 4, 6, 8] ; Elements in either set 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.