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