Ignore:
Timestamp:
03/26/07 17:37:03 (17 years ago)
Author:
pinsard
Message:

replace some print by some report in some .pro (continuation) + improvements/corrections of some *.pro headers

File:
1 edited

Legend:

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

    r231 r237  
    11;+ 
    2 ; @file_comments  
     2; @file_comments 
    33; Send back a vector or a matrix constituted of 0 and 1 in alternation 
    44; 
    5 ; @categories  
     5; @categories 
    66; Function, Matrix 
    77; 
    8 ; @param n1 {in}{required} number of elements in the first dimension 
    9 ; @param n2 {in}{required} number of elements in the second dimension 
     8; @param n1 {in}{required} 
     9; number of elements in the first dimension 
    1010; 
    11 ; @returns result 
    12 ;  
    13 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     11; @param n2 {in}{required} 
     12; number of elements in the second dimension 
     13; 
     14; @returns 
     15; result 
     16; 
     17; @history 
     18; Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    1419;                       1/12/98 
    1520; 
    16 ; @version $Id$ 
     21; @version 
     22; $Id$ 
    1723; 
    1824;- 
    1925; 
    20 function zero_one, n1,n2 
     26FUNCTION zero_one, n1,n2 
    2127; 
    2228  compile_opt idl2, strictarrsubs 
     
    2430   CASE N_PARAMS() OF 
    2531      1:return, findgen(n1) mod 2 
    26       2:BEGIN  
     32      2:BEGIN 
    2733         if fix(n1/2) EQ n1/2. then BEGIN ;even number of columns 
    2834            res = findgen(n1+1,n2) mod 2 
     
    3137      END 
    3238      else: return,  report('bad number of arguments') 
    33    endcase             
     39   endcase 
    3440end 
Note: See TracChangeset for help on using the changeset viewer.