# Vector128<T> Struct

## Definition

Represents a 128-bit vector of a specified numeric type that is suitable for low-level optimization of parallel algorithms.

``````generic <typename T>
where T : value classpublic value class Vector128 : IEquatable<System::Runtime::Intrinsics::Vector128<T>>``````
``public readonly struct Vector128<T> : IEquatable<System.Runtime.Intrinsics.Vector128<T>> where T : struct``
``type Vector128<'T (requires 'T : struct)> = struct``
``````Public Structure Vector128(Of T)
Implements IEquatable(Of Vector128(Of T))``````

#### Type Parameters

T

The type of the elements in the vector.

Inheritance
Vector128<T>
Implements

## Properties

 Gets a new Vector128 with all bits set to 1. Gets the number of `T` that are in a Vector128. Gets a value that indicates whether `T` is supported. Gets the element at the specified index. Gets a new Vector128 with all elements initialized to zero.

## Methods

 Determines whether the specified object is equal to the current instance. Determines whether the specified Vector128 is equal to the current instance. Gets the hash code for the instance. Converts the current instance to an equivalent string representation.

## Operators

 Adds two vectors to compute their sum. Computes the bitwise-and of two vectors. Computes the bitwise-or of two vectors. Divides two vectors to compute their quotient. Compares two vectors to determine if all elements are equal. Computes the exclusive-or of two vectors. Compares two vectors to determine if any elements are not equal. Multiplies a vector by a scalar to compute their product. Multiplies a vector by a scalar to compute their product. Multiplies two vectors to compute their element-wise product. Computes the ones-complement of a vector. Subtracts two vectors to compute their difference. Computes the unary negation of a vector. Returns a given vector unchanged.

## Extension Methods

 Reinterprets a Vector128 of type `TFrom` as a new Vector128 of type `TTo`. Reinterprets a Vector128 as a new Vector128 of type Byte. Reinterprets a Vector128 as a new Vector128 of type Double. Reinterprets a Vector128 as a new Vector128 of type Int16. Reinterprets a Vector128 as a new Vector128 of type Int32. Reinterprets a Vector128 as a new Vector128 of type Int64. Reinterprets a Vector128 as a new Vector128. Reinterprets a Vector128 as a new Vector128. Reinterprets a Vector128 as a new Vector128 of type SByte. Reinterprets a Vector128 as a new Vector128 of type Single. Reinterprets a Vector128 as a new Vector128 of type UInt16. Reinterprets a Vector128 as a new Vector128 of type UInt32. Reinterprets a Vector128 as a new Vector128 of type UInt64. Reinterprets a Vector128 as a new Vector. Copies a Vector128 to a given array. Copies a Vector128 to a given array starting at the specified index. Copies a Vector128 to a given span. Extracts the most significant bit from each element in a vector. Gets the element at the specified index. Gets the value of the lower 64-bits as a new Vector64. Gets the value of the upper 64-bits as a new Vector64. Stores a vector at the given destination. Stores a vector at the given aligned destination. Stores a vector at the given aligned destination. Stores a vector at the given destination. Stores a vector at the given destination. Converts the given vector to a scalar containing the value of the first element. Converts the given vector to a new Vector256 with the lower 128-bits set to the value of the given vector and the upper 128-bits initialized to zero. Converts the given vector to a new Vector256 with the lower 128-bits set to the value of the given vector and the upper 128-bits left uninitialized. Tries to copy a Vector to a given span. Creates a new Vector128 with the element at the specified index set to the specified value and the remaining elements set to the same value as that in the given vector. Creates a new Vector128 with the lower 64-bits set to the specified value and the upper 64-bits set to the same value as that in the given vector. Creates a new Vector128 with the upper 64-bits set to the specified value and the lower 64-bits set to the same value as that in the given vector.