Ignore:
Timestamp:
08/08/08 16:11:31 (16 years ago)
Author:
pinsard
Message:

improvements of headers (examples and results)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Matrix/inter.pro

    r371 r373  
    22; 
    33; @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> 
    57; 
    68; @categories 
     
    1618; 
    1719; @returns 
    18 ; tableau 
     20; an array containing the set of values in both a and b. 
    1921; 
    20 ; @restrictions  
    2122; The empty set is denoted by an array with the first element equal to 
    2223; -1. 
     
    3334;   IDL> a = [2,4,6,8] 
    3435;   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. 
    3639; 
    3740; @history 
Note: See TracChangeset for help on using the changeset viewer.