- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_assistant_output/Matrix/different.html
r338 r402 62 62 63 63 64 calculate the different elements of 2 matrix of positive whole numbers. 64 find the different elements of 2 matrixes of positive whole numbers. 65 66 see also <a href="..//Matrix/union.html">union</a> and <a href="..//Matrix/inter.html">inter</a>. 65 67 66 68 … … 80 82 81 83 <h3>Return value</h3> 82 tableau 84 an array containing the set of values in only a. 85 86 The empty set is denoted by an array with the first element equal to 87 -1. 83 88 84 89 … … 101 106 102 107 arrays of positive integers, which need 103 104 108 not be sorted. Duplicate elements are ignored, as they have no 109 effect on the result 105 110 106 111 … … 128 133 <h3>Examples</h3><pre> 129 134 130 IDL> a = [2,4,6,8] 131 IDL> b = [6,1,3,2] 132 IDL> different(a,b) = [ 4, 8] ; Elements in A but not in B 135 IDL> a = [2,4,6,8] 136 IDL> b = [6,1,3,2] 137 138 IDL> res=different(a,b) 139 4 8 140 Right because 4 and 8 are in a but not in b ! 141 142 IDL> res=different(b,a) 143 IDL> print,res 144 1 3 145 146 Right because 1 and 3 are in b but not in a ! 133 147 134 148 </pre><h3>Version history</h3> 135 149 136 150 <h4>Version</h4> 137 $Id: different.pro 3 25 2007-12-06 10:04:53Z pinsard $151 $Id: different.pro 373 2008-08-08 14:11:31Z pinsard $ 138 152 139 153 <h4>History</h4> … … 147 161 148 162 <h4>Restrictions</h4> 149 The empty set is denoted by an array with the first element equal to150 -1.151 152 153 163 These functions will not be efficient on sparse sets with wide 154 164 ranges, as they trade memory for efficiency. The HISTOGRAM function
Note: See TracChangeset
for help on using the changeset viewer.