Ignore:
Timestamp:
03/27/07 15:43:18 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/MATRICE/colle.pro

    r163 r238  
    11;+ 
    2 ; @file_comments  
    3 ; This concatenation function exist in IDL so long  
    4 ; as we do not try to stick with a dimension superior or equal at 4.   
     2; @file_comments 
     3; This concatenation function exist in IDL so long 
     4; as we do not try to stick with a dimension superior or equal at 4. 
    55; 
    6 ; @categories  
     6; @categories 
    77; Utilities 
    88; 
     
    5252; force to save the pointer array and arrays to be stuck 
    5353; 
    54 ; @returns res=matrice resultat 
     54; @returns 
     55; matrice resultat 
    5556; 
    56 ; @examples IDL> print, colle(replicate(1,2,2,2),indgen(2,2,2),2)    
     57; @examples 
     58; IDL> print, colle(replicate(1,2,2,2),indgen(2,2,2),2) 
    5759;                1       1 
    5860;                1       1 
     
    6567;                6       7 
    6668; 
    67 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     69; @history 
     70; Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    6871;                       13/1/98 
    6972; 
    70 ; @version $Id$ 
     73; @version 
     74; $Id$ 
    7175; 
    7276;- 
     77; 
    7378FUNCTION colle, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, SAUVE = sauve 
    7479; 
     
    111116            res = [temporary(res), *ptrtab[n]] 
    112117            if NOT keyword_set(sauve) then ptr_free, ptrtab[n] 
    113          ENDFOR  
    114       END  
     118         ENDFOR 
     119      END 
    115120      2:BEGIN                   ; we paste following the dimension 2 
    116121         res = *ptrtab[0] 
     
    119124            res = [[temporary(res)], [*ptrtab[n]]] 
    120125            if NOT keyword_set(sauve) then ptr_free, ptrtab[n] 
    121          ENDFOR  
    122       END  
     126         ENDFOR 
     127      END 
    123128      3:BEGIN                   ; we paste following the dimension 3 
    124129         res = *ptrtab[0] 
     
    127132            res = [[[temporary(res)]], [[*ptrtab[n]]]] 
    128133            if NOT keyword_set(sauve) then ptr_free, ptrtab[n] 
    129          ENDFOR  
     134         ENDFOR 
    130135      END 
    131       ELSE:BEGIN  
     136      ELSE:BEGIN 
    132137; We transpose res in order to put the dimension to be pasted number 1 
    133 ; To this, we contain the permuter vector which give the place that dimension  
     138; To this, we contain the permuter vector which give the place that dimension 
    134139; in the transposed matrix must take. 
    135140        siz = (size(*ptrtab[0]))[0] 
     
    143148         FOR n = 1,nbretab-1 DO BEGIN ; we paste following the dimension 1on colle suivant la dimension 1 
    144149            if (size(*ptrtab[n]))[0] LT direc then $ 
    145              *ptrtab[n] = reform(*ptrtab[n], [(size(*ptrtab[n]))[1:siz], replicate(1, direc-siz)])             
     150             *ptrtab[n] = reform(*ptrtab[n], [(size(*ptrtab[n]))[1:siz], replicate(1, direc-siz)]) 
    146151            res = [temporary(res), transpose(*ptrtab[n], permute)] 
    147152            if NOT keyword_set(sauve) then ptr_free, ptrtab[n] 
     
    149154         res = transpose(temporary(res), permute) 
    150155      END 
    151    ENDCASE  
     156   ENDCASE 
    152157;------------------------------------------------------------ 
    153158   if NOT keyword_set(sauve) then undefine, ptrtab 
    154159sortie: 
    155160   return,  res 
    156  
    157     
    158 END  
    159   
    160 ;------------------------------------------------------------ 
     161END 
Note: See TracChangeset for help on using the changeset viewer.