Changeset 372 for trunk/SRC/Matrix
- Timestamp:
- 08/08/08 14:31:53 (16 years ago)
- Location:
- trunk/SRC/Matrix
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Matrix/cmset_op.pro
r325 r372 7 7 ; "first" value, whatever that may mean. 8 8 ; 9 ; @todo seb 9 ; @todo 10 ; seb 10 11 ; 11 12 ;- -
trunk/SRC/Matrix/different.pro
r371 r372 9 9 ; @param a {in}{required} 10 10 ; arrays of positive integers, which need 11 ; 12 ; 11 ; not be sorted. Duplicate elements are ignored, as they have no 12 ; effect on the result 13 13 ; 14 14 ; @param b {in}{required} -
trunk/SRC/Matrix/extrac2.pro
r371 r372 37 37 ; @param index1 {in}{required} 38 38 ; can have 2 forms: 39 ; 1)a vector containing indexes of lines we want to keep 40 ; 2)the string '*' if we want to keep all lines. 39 ; 40 ; 1) a vector containing indexes of lines we want to keep 41 ; 2) the string '*' if we want to keep all lines. 41 42 ; 42 43 ; @param index2 {in}{required} … … 50 51 ; 51 52 ; @returns 52 ; a matrix 1 ,2,3or 4d extract from input array53 ; a matrix 1d, 2d, 3d or 4d extract from input array 53 54 ; -1 in case of mistake 54 55 ; … … 62 63 ; 63 64 ; other ex: 65 ; IDL> a=[['a','b','c'],['d','e','f'],['g','h','i']] 64 66 ; IDL> print, a 65 67 ; a b c … … 72 74 ; @history 73 75 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 74 ; 75 ; 76 ; - 12/1/1999 77 ; - 29/4/1999: correction of a bug and complement of the heading 76 78 ; 77 79 ; @version -
trunk/SRC/Matrix/make_selection.pro
r325 r372 47 47 ; 48 48 ; @examples 49 ; names = [ 'Alfred','Anton','Peter','John','Mary']50 ; index = MAKE_SELECTION(names,['Peter','Mary'])51 ; print,index52 ; ; prints 2 453 49 ; 54 ; vals = indgen(20)55 ; index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9])56 ; 57 ; ; prints 9 -1 8 7 7 8 950 ; IDL> names = [ 'Alfred','Anton','Peter','John','Mary'] 51 ; IDL> index = MAKE_SELECTION(names,['Peter','Mary']) 52 ; IDL> print,index 53 ; 2 4 58 54 ; 59 ; index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9],/ONLY_VALID) 60 ; print,index 61 ; ; prints 9 8 7 7 8 9 55 ; IDL> vals = indgen(20) 56 ; IDL> index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9]) 57 ; IDL> print,index 58 ; 9 -1 8 7 7 8 9 62 59 ; 63 ; index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9],/REQUIRED) 64 ; print,index 65 ; ; prints -1 60 ; IDL> index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9],/ONLY_VALID) 61 ; IDL> print,index 62 ; 9 8 7 7 8 9 63 ; 64 ; IDL> index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9],/REQUIRED) 65 ; IDL> print,index 66 ; -1 67 ; 68 ; IDL> index = MAKE_SELECTION(vals,[9,-5,8,7,7,8,9],/REQUIRED,/QUIET) 69 ; % MAKE_SELECTION: Selected name not found in names array (-5)! 70 ; IDL> print,index 71 ; -1 66 72 ; 67 73 ; @history -
trunk/SRC/Matrix/union.pro
r371 r372 9 9 ; @param a {in}{required} 10 10 ; arrays of positive integers, which need 11 ; 12 ; 11 ; not be sorted. Duplicate elements are ignored, as they have no 12 ; effect on the result 13 13 ; 14 14 ; @param b {in}{required}
Note: See TracChangeset
for help on using the changeset viewer.