Changeset 133 for trunk/SRC/Matrix/different.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/different.pro
r132 r133 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:different6 5 ; 7 ; PURPOSE:calcule les elements differents de 2 matrices D'ENTIERS POSITIFS 6 ; @file_comments 7 ; calculate the different elements of 2 matrix of positif whole numbers. 8 8 ; 9 ; CATEGORY:calcule sur les matrices9 ; @categories Calculation of matrixes 10 10 ; 11 ; CALLING SEQUENCE:res=different(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 36 28 ; 37 29 ; a = [2,4,6,8] … … 39 31 ; different(a,b) = [ 4, 8] ; Elements in A but not in B 40 32 ; 41 ; MODIFICATION HISTORY:33 ; @history http://www.dfanning.com/tips/set_operations.html 42 34 ; 43 ; http://www.dfanning.com/tips/set_operations.html 35 ; @version $Id$ 36 ; 44 37 ;- 45 38 ;------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.