|
49 | 49 | <format type="text/markdown"><![CDATA[
|
50 | 50 |
|
51 | 51 | ## Remarks
|
52 |
| - <xref:System.Numerics.Vector%601> is an immutable structure that represents a single vector of a specified numeric type. The count of a <xref:System.Numerics.Vector%601> instance is fixed, but its upper limit is CPU-register dependent. It is intended to be used as a building block for vectorizing large algorithms. |
| 52 | + <xref:System.Numerics.Vector%601> is an immutable structure that represents a single vector of a specified numeric type. The count of <xref:System.Numerics.Vector%601> instances is fixed, but its upper limit is CPU-register dependent. It is intended to be used as a building block for vectorizing large algorithms, and therefore cannot be used directly as an arbitrary length vector or tensor. |
53 | 53 |
|
54 |
| - The <xref:System.Numerics.Vector%601> structure provides support for hardware acceleration. |
| 54 | + The <xref:System.Numerics.Vector%601> structure provides support for hardware acceleration. |
55 | 55 |
|
56 |
| - The following table shows which primitive numeric data type and operation combination uses intrinsic instructions for faster executions: |
| 56 | + The term 'primitive numeric data type' in this document refers to numeric data types that are directly supported by the CPU and have instructions that can manipulate those data types. The following table shows which primitive numeric data type and operation combination uses intrinsic instructions for faster executions: |
57 | 57 |
|
58 | 58 | | Primitive type | `+` | `-` | `*` | `/` |
|
59 | 59 | | --- | :---: | :---: | :---: | :---: |
|
|
72 | 72 | </remarks>
|
73 | 73 | </Docs>
|
74 | 74 | <Members>
|
| 75 | + <MemberGroup MemberName=".ctor"> |
| 76 | + <AssemblyInfo> |
| 77 | + <AssemblyName>System.Numerics.Vectors</AssemblyName> |
| 78 | + <AssemblyVersion>2.0.5.0</AssemblyVersion> |
| 79 | + <AssemblyVersion>4.0.0.0</AssemblyVersion> |
| 80 | + <AssemblyVersion>4.1.0.0</AssemblyVersion> |
| 81 | + <AssemblyVersion>4.1.1.0</AssemblyVersion> |
| 82 | + <AssemblyVersion>4.1.2.0</AssemblyVersion> |
| 83 | + <AssemblyVersion>4.1.3.0</AssemblyVersion> |
| 84 | + <AssemblyVersion>4.1.4.0</AssemblyVersion> |
| 85 | + <AssemblyVersion>4.1.5.0</AssemblyVersion> |
| 86 | + </AssemblyInfo> |
| 87 | + <AssemblyInfo> |
| 88 | + <AssemblyName>netstandard</AssemblyName> |
| 89 | + <AssemblyVersion>2.0.0.0</AssemblyVersion> |
| 90 | + <AssemblyVersion>2.1.0.0</AssemblyVersion> |
| 91 | + </AssemblyInfo> |
| 92 | + <Docs> |
| 93 | + <summary>Creates an instance of <see cref="T:System.Numerics.Vector`1" />.</summary> |
| 94 | + <remarks> |
| 95 | + <format type="text/markdown"><![CDATA[ |
| 96 | +
|
| 97 | +The type `T` can be any of the following numeric types: |
| 98 | +
|
| 99 | +| C# keywords | Framework Type | |
| 100 | +| ----------- | -------------------- | |
| 101 | +| `sbyte` | <xref:System.SByte> | |
| 102 | +| `byte` | <xref:System.Byte> | |
| 103 | +| `short` | <xref:System.Int16> | |
| 104 | +| `ushort` | <xref:System.UInt16> | |
| 105 | +| `int` | <xref:System.Int32> | |
| 106 | +| `uint` | <xref:System.UInt32> | |
| 107 | +| `long` | <xref:System.Int64> | |
| 108 | +| `ulong` | <xref:System.UInt64> | |
| 109 | +| `float` | <xref:System.Single> | |
| 110 | +| `double` | <xref:System.Double> | |
| 111 | +
|
| 112 | + ]]> |
| 113 | + </format> |
| 114 | + </remarks> |
| 115 | + </Docs> |
| 116 | + </MemberGroup> |
75 | 117 | <Member MemberName=".ctor">
|
76 | 118 | <MemberSignature Language="C#" Value="public Vector (ReadOnlySpan<byte> values);" />
|
77 | 119 | <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.ReadOnlySpan`1<unsigned int8> values) cil managed" />
|
|
92 | 134 | <Parameter Name="values" Type="System.ReadOnlySpan<System.Byte>" Index="0" FrameworkAlternate="netcore-3.0;netcore-3.1" />
|
93 | 135 | </Parameters>
|
94 | 136 | <Docs>
|
95 |
| - <param name="values">A read-only span of bytes that contains the values to add to the vector. The span must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements.</param> |
| 137 | + <param name="values">A read-only span of bytes that contains the values to add to the vector. The span must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements and only the first <see cref="P:System.Numerics.Vector`1.Count" /> elements are used.</param> |
96 | 138 | <summary>Constructs a vector from the given read-only span of bytes.</summary>
|
97 |
| - <remarks>To be added.</remarks> |
| 139 | + <remarks> |
| 140 | + <format type="text/markdown"><![CDATA[ |
| 141 | +
|
| 142 | +## Remarks |
| 143 | +
|
| 144 | + Only the first <xref:System.Numerics.Vector%601.Count%2A> elements are added to the vector. The remainders are ignored. |
| 145 | +
|
| 146 | + ]]></format> |
| 147 | + </remarks> |
| 148 | + <exception cref="T:System.IndexOutOfRangeException"> |
| 149 | + <paramref name="values" /> did not contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements.</exception> |
98 | 150 | </Docs>
|
99 | 151 | </Member>
|
100 | 152 | <Member MemberName=".ctor">
|
|
117 | 169 | <Parameter Name="values" Type="System.ReadOnlySpan<T>" Index="0" FrameworkAlternate="netcore-3.0;netcore-3.1" />
|
118 | 170 | </Parameters>
|
119 | 171 | <Docs>
|
120 |
| - <param name="values">The values to add to the vector, as a read-only span of objects of type T. The span must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements.</param> |
| 172 | + <param name="values">The values to add to the vector, as a read-only span of objects of type T. The span must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements and only the first <see cref="P:System.Numerics.Vector`1.Count" /> elements are used.</param> |
121 | 173 | <summary>Constructs a vector from the given <see cref="T:System.ReadOnlySpan`1" />.</summary>
|
122 |
| - <remarks>To be added.</remarks> |
| 174 | + <remarks> |
| 175 | + <format type="text/markdown"><![CDATA[ |
| 176 | +
|
| 177 | +## Remarks |
| 178 | +
|
| 179 | + Only the first <xref:System.Numerics.Vector%601.Count%2A> elements are added to the vector. The remainders are ignored. |
| 180 | +
|
| 181 | + ]]></format> |
| 182 | + </remarks> |
| 183 | + <exception cref="T:System.IndexOutOfRangeException"> |
| 184 | + <paramref name="values" /> did not contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements.</exception> |
123 | 185 | </Docs>
|
124 | 186 | </Member>
|
125 | 187 | <Member MemberName=".ctor">
|
|
145 | 207 | <Parameter Name="values" Type="System.Span<T>" Index="0" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1" />
|
146 | 208 | </Parameters>
|
147 | 209 | <Docs>
|
148 |
| - <param name="values">The values to add to the vector, as a span of objects of type T. The span must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements.</param> |
| 210 | + <param name="values">The values to add to the vector, as a span of objects of type T. The span must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements and only the first <see cref="P:System.Numerics.Vector`1.Count" /> elements are used.</param> |
149 | 211 | <summary>Constructs a vector from the given <see cref="T:System.Span`1" />.</summary>
|
150 |
| - <remarks>To be added.</remarks> |
| 212 | + <remarks> |
| 213 | + <format type="text/markdown"><![CDATA[ |
| 214 | +
|
| 215 | +## Remarks |
| 216 | +
|
| 217 | + Only the first <xref:System.Numerics.Vector%601.Count%2A> elements are added to the vector. The remainders are ignored. |
| 218 | +
|
| 219 | + ]]></format> |
| 220 | + </remarks> |
| 221 | + <exception cref="T:System.IndexOutOfRangeException"> |
| 222 | + <paramref name="values" /> did not contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements.</exception> |
151 | 223 | </Docs>
|
152 | 224 | </Member>
|
153 | 225 | <Member MemberName=".ctor">
|
|
181 | 253 | <Docs>
|
182 | 254 | <param name="value">The numeric type that defines the type of the components in the vector.</param>
|
183 | 255 | <summary>Creates a vector whose components are of a specified type.</summary>
|
184 |
| - <remarks> |
185 |
| - <format type="text/markdown"><![CDATA[ |
186 |
| - |
187 |
| -## Remarks |
188 |
| - `value` can be any primitive numeric type (that is, a numeric type whose <xref:System.Type.IsPrimitive%2A?displayProperty=nameWithType> property returns `true`. |
189 |
| - |
190 |
| - ]]></format> |
191 |
| - </remarks> |
| 256 | + <remarks>To be added. </remarks> |
192 | 257 | </Docs>
|
193 | 258 | </Member>
|
194 | 259 | <Member MemberName=".ctor">
|
|
220 | 285 | <Parameter Name="values" Type="T[]" />
|
221 | 286 | </Parameters>
|
222 | 287 | <Docs>
|
223 |
| - <param name="values">A numeric array.</param> |
| 288 | + <param name="values">The values to add to the vector, as an array of objects of type T. The array must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements and only the first <see cref="P:System.Numerics.Vector`1.Count" /> elements are used.</param> |
224 | 289 | <summary>Creates a vector from a specified array.</summary>
|
225 | 290 | <remarks>
|
226 | 291 | <format type="text/markdown"><![CDATA[
|
227 | 292 |
|
228 | 293 | ## Remarks
|
229 |
| - `values` must contain at least <xref:System.Numerics.Vector%601.Count%2A> elements. |
| 294 | +
|
| 295 | + Only the first <xref:System.Numerics.Vector%601.Count%2A> elements are added to the vector. The remainders are ignored. |
230 | 296 |
|
231 | 297 | ]]></format>
|
232 | 298 | </remarks>
|
|
264 | 330 | <Parameter Name="index" Type="System.Int32" />
|
265 | 331 | </Parameters>
|
266 | 332 | <Docs>
|
267 |
| - <param name="values">A numeric array.</param> |
| 333 | + <param name="values">The values to add to the vector, as an array of objects of type T. The array must contain at least <see cref="P:System.Numerics.Vector`1.Count" /> elements from the specified index and only the first <see cref="P:System.Numerics.Vector`1.Count" /> elements are used.</param> |
268 | 334 | <param name="index">The starting index position from which to create the vector.</param>
|
269 | 335 | <summary>Creates a vector from a specified array starting at a specified index position.</summary>
|
270 | 336 | <remarks>
|
271 |
| - <format type="text/markdown"><![CDATA[ |
272 |
| - |
| 337 | + <format type="text/markdown"><![CDATA[ |
| 338 | +
|
273 | 339 | ## Remarks
|
274 |
| - The array must contain at least <xref:System.Numerics.Vector%601.Count%2A?displayProperty=nameWithType> elements from the specified index. |
275 |
| - |
276 |
| - ]]></format> |
| 340 | +
|
| 341 | + Only the first <xref:System.Numerics.Vector%601.Count%2A> elements are added to the vector. The remainders are ignored. |
| 342 | +
|
| 343 | + ]]></format> |
277 | 344 | </remarks>
|
278 | 345 | <exception cref="T:System.ArgumentNullException">
|
279 | 346 | <paramref name="values" /> is <see langword="null" />.</exception>
|
|
0 commit comments