Vector<T> Structure
Represents a single vector of a specified numeric type that is suitable for low-level optimization of parallel algorithms.
Namespace: System.Numerics
Assembly: System.Numerics.Vectors (in System.Numerics.Vectors.dll)
The Vector<T> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Vector<T>(T) | Creates a vector whose components are of a specified type. |
![]() | Vector<T>(array<T>) | Creates a vector from a specified array. |
![]() | Vector<T>(array<T>, Int32) | Creates a vector from a specified array starting at a specified index position. |
| Name | Description | |
|---|---|---|
![]() | CopyTo(array<T>) | Copies the vector instance to a specified destination array. |
![]() | CopyTo(array<T>, Int32) | Copies the vector instance to a specified destination array starting at a specified index position. |
![]() | Equals(Object) | Returns a value that indicates whether this instance is equal to a specified object. (Overrides ValueType::Equals(Object).) |
![]() | Equals(Vector<T>) | Returns a value that indicates whether this instance is equal to a specified vector. |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueType::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString() | Returns the string representation of this vector using default formatting. (Overrides ValueType::ToString().) |
![]() | ToString(String) | Returns the string representation of this vector using the specified format string to format individual elements. |
![]() | ToString(String, IFormatProvider) | Returns the string representation of this vector using the specified format string to format individual elements and the specified format provider to define culture-specific formatting. |
| Name | Description | |
|---|---|---|
![]() ![]() | Addition | Adds two vectors together. |
![]() ![]() | BitwiseAnd | Returns a new vector by performing a bitwise And operation on each of the elements in two vectors. |
![]() ![]() | BitwiseOr | Returns a new vector by performing a bitwise Or operation on each of the elements in two vectors. |
![]() ![]() | Division | Divides the first vector by the second. |
![]() ![]() | Equality | Returns a value that indicates whether each pair of elements in two specified vectors are equal. |
![]() ![]() | ExclusiveOr | Returns a new vector by performing a bitwise XOr operation on each of the elements in two vectors. |
![]() ![]() | Explicit(Vector<T> to Vector<Double>) | Reinterprets the bits of the specified vector into a vector of type Double. |
![]() ![]() | Explicit(Vector<T> to Vector<SByte>) | Reinterprets the bits of the specified vector into a vector of type SByte. |
![]() ![]() | Explicit(Vector<T> to Vector<Single>) | Reinterprets the bits of the specified vector into a vector of type Single. |
![]() ![]() | Explicit(Vector<T> to Vector<Int16>) | Reinterprets the bits of the specified vector into a vector of type Int16. |
![]() ![]() | Explicit(Vector<T> to Vector<UInt16>) | Reinterprets the bits of the specified vector into a vector of type UInt16. |
![]() ![]() | Explicit(Vector<T> to Vector<Byte>) | Reinterprets the bits of the specified vector into a vector of type Byte. |
![]() ![]() | Explicit(Vector<T> to Vector<UInt32>) | Reinterprets the bits of the specified vector into a vector of type UInt32. |
![]() ![]() | Explicit(Vector<T> to Vector<Int64>) | Reinterprets the bits of the specified vector into a vector of type Int64. |
![]() ![]() | Explicit(Vector<T> to Vector<UInt64>) | Reinterprets the bits of the specified vector into a vector of type UInt64. |
![]() ![]() | Explicit(Vector<T> to Vector<Int32>) | Reinterprets the bits of the specified vector into a vector of type Int32. |
![]() ![]() | Inequality | Returns a value that indicates whether any single pair of elements in the specified vectors is equal. |
![]() ![]() | Multiply(T, Vector<T>) | Multiplies a vector by the given scalar. |
![]() ![]() | Multiply(Vector<T>, Vector<T>) | Multiplies two vectors together. |
![]() ![]() | Multiply(Vector<T>, T) | Multiplies a vector by a specified scalar value. |
![]() ![]() | OnesComplement | Returns a new vector whose elements are obtained by taking the one's complement of a specified vector's elements. |
![]() ![]() | Subtraction | Subtracts the second vector from the first. |
![]() ![]() | UnaryNegation | Negates a given vector. |
Vector<T> is an immutable structure that represents a single vector of a specified numeric type. The count of a Vector<T> 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.
The Vector<T> structure provides support for hardware acceleration.



