Changeset 163 for trunk/SRC/Matrix
- Timestamp:
- 08/29/06 14:59:46 (18 years ago)
- Location:
- trunk/SRC/Matrix
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Matrix/cmapply.pro
r157 r163 2 2 ; @file_comments 3 3 ; Utility function, adapted from CMPRODUCT 4 ; 5 ; @param X 6 ; 4 7 ; 5 8 ; @version $Id$ … … 28 31 ; cmapply_redim : Utility function, used to collect collaped dimensions 29 32 ; 33 ; @param newarr 34 ; 35 ; 36 ; @param dimapply 37 ; 38 ; 39 ; @param dimkeep 40 ; 41 ; 42 ; @param nkeep 43 ; 44 ; 45 ; @param totcol 46 ; 47 ; 48 ; @param totkeep 49 ; 50 ; 30 51 ; @todo seb 31 52 ;- … … 109 130 ; Array 110 131 ; 111 ; @param OP {in}{required} 132 ; @param OP {in}{required}{type=string} 112 133 ; The operation to perform, as a string. May be upper or lower case. 113 134 ; … … 116 137 ; the user-defined function. 117 138 ; 118 ; @param ARRAY {in}{required} 139 ; @param ARRAY {in}{required}{type=array} 119 140 ; An array of values to be operated on. 120 141 ; Must not be of type STRING (7) or STRUCTURE (8). 121 142 ; 122 ; @param dimapply {in}{optional}{default=1 (ie, first dimension)} 143 ; @param dimapply {in}{optional}{default=1 (ie, first dimension)}{type=array} 123 144 ; An array of dimensions that are to be "collapsed", where 124 145 ; the the first dimension starts with 1 (ie, same convention … … 135 156 ; precision (real or complex) then DOUBLE=1 is implied. 136 157 ; 137 ; @keyword TYPE 158 ; @keyword TYPE {default=same as input type} 138 159 ; Set this to the IDL code of the desired output type (refer 139 160 ; to documentation of SIZE()). Internal results will be 140 161 ; rounded to the nearest integer if the output type is an 141 162 ; integer type. 142 ; DEFAULT: same is input type143 163 ; 144 164 ; @keyword FUNCTARGS … … 199 219 ; @history Mar 1998, Written, CM 200 220 ; Changed usage message to not bomb, 24 Mar 2000, CM 201 ; Sign ficant rewrite for *, MIN and MAX (inspired by Todd Clements221 ; Significant rewrite for *, MIN and MAX (inspired by Todd Clements 202 222 ; <Todd_Clements\@alumni.hmc.edu>); FOR loop indices are now type 203 223 ; LONG; copying terms are liberalized, CM, 22, Aug 2000 -
trunk/SRC/Matrix/cmset_op.pro
r157 r163 41 41 ; 42 42 ; The complements of either set can be taken as well, by using the 43 ; NOT1 and NOT2 keywords. For example, it may be desir eable to find43 ; NOT1 and NOT2 keywords. For example, it may be desirable to find 44 44 ; the elements in A but not B, or B but not A (they are different!). 45 45 ; The following IDL expressions achieve each of those effects: … … 79 79 ; See A 80 80 ; 81 ; @param OP0 {in}{required} 81 ; @param OP0 {in}{required}{type=string} 82 82 ; a string, the operation to be performed. Must be one of 83 83 ; 'AND', 'OR' or 'XOR' (lower or mixed case is permitted). … … 101 101 ; 102 102 ; @keyword INDEX 103 ; if set, then return a list of ind ices instead of the array103 ; if set, then return a list of indexes instead of the array 104 104 ; values themselves. The "slower" set operations are always 105 105 ; performed in this case. 106 106 ; 107 ; The ind ices refer to the *combined* array [A,B]. To107 ; The indexes refer to the *combined* array [A,B]. To 108 108 ; clarify, in the following call: I = CMSET_OP(..., /INDEX); 109 109 ; returned values from 0 to NA-1 refer to A[I], and values … … 118 118 ; The resulting set as a one-dimensional array. The set may be 119 119 ; represented by either an array of data values (default), or an 120 ; array of ind ices (if INDEX is set). Duplicate elements, if any,120 ; array of indexes (if INDEX is set). Duplicate elements, if any, 121 121 ; are removed, and element order may not be preserved. 122 122 ; -
trunk/SRC/Matrix/different.pro
r157 r163 5 5 ; 6 6 ; @file_comments 7 ; calculate the different elements of 2 matrix of positi fwhole numbers.7 ; calculate the different elements of 2 matrix of positive whole numbers. 8 8 ; 9 9 ; @categories -
trunk/SRC/Matrix/extrac2.pro
r157 r163 5 5 ; 6 6 ; @file_comments 7 ; extraction of subdomains of matri xes;7 ; extraction of subdomains of matrices; 8 8 ; Even if the subdomain is "pierced" (see the example) 9 9 ; By default, IDL can make extractions of subdomain: -
trunk/SRC/Matrix/inter.pro
r157 r163 5 5 ; 6 6 ; @file_comments 7 ; calculate the intersection between 2 matri xes of whole numbers7 ; calculate the intersection between 2 matrices of whole numbers 8 8 ; 9 9 ; @categories … … 11 11 ; 12 12 ; @param a {in}{required} arrays of positive integers, which need not to be 13 ; sorted. Duplicate elements are ignored, as they have no effect on the13 ; sorted. Duplicate elements are ignored, as they have no effect on the 14 14 ; result 15 15 ; -
trunk/SRC/Matrix/make_selection.pro
r134 r163 12 12 ; @param SELNAMES {in}{required} A list of selected values 13 13 ; 14 ; @keyword ONLY_VALID Return only ind ices of found values. Values not14 ; @keyword ONLY_VALID Return only indexes of found values. Values not 15 15 ; found are skipped. Default is to return 1 index value for 16 16 ; each SELNAME, which is -1 if SELNAME is not contained in … … 19 19 ; at all. 20 20 ; 21 ; @keyword REQUIRED Normally, MAKE_SELECTION will return ind ices for21 ; @keyword REQUIRED Normally, MAKE_SELECTION will return indexes for 22 22 ; all values that are found, simply ignoring the selected 23 23 ; values that are not in the NAMES array (although an error … … 29 29 ; still be set). 30 30 ; 31 ; @returns A (long) array with ind ices to reference the selected values31 ; @returns A (long) array with indexes to reference the selected values 32 32 ; in the NAMES array. 33 33 ; … … 58 58 ; 59 59 ; @history mgs, 28 Aug 1998: VERSION 1.00 60 ; mgs, 29 Aug 1998: - changed behavio ur and added ONLY_VALID keyword60 ; mgs, 29 Aug 1998: - changed behavior and added ONLY_VALID keyword 61 61 ; 62 62 ; @version $Id$ -
trunk/SRC/Matrix/union.pro
r157 r163 5 5 ; 6 6 ; @file_comments 7 ; calculate t ne union between 2 matrixes of whole numbers7 ; calculate the union between 2 matrices of whole numbers 8 8 ; 9 9 ; @categories -
trunk/SRC/Matrix/zero_one.pro
r157 r163 4 4 ;+ 5 5 ; @file_comments 6 ; Send back a vector or a matrix constitu ateof 0 and 1 in alternation6 ; Send back a vector or a matrix constituted of 0 and 1 in alternation 7 7 ; 8 8 ; @categories … … 10 10 ; 11 11 ; @param n1 {in}{required} number of elements in the first dimension 12 ; @param n2 {in}{required} numb reof elements in the second dimension12 ; @param n2 {in}{required} number of elements in the second dimension 13 13 ; 14 ; @returns result at14 ; @returns result 15 15 ; 16 16 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
Note: See TracChangeset
for help on using the changeset viewer.