# Vector Class

Provides a collection of static convenience methods for creating, manipulating, combining, and converting generic vectors.

**Namespace:**System.Numerics

**Assembly:**System.Numerics.Vectors (in System.Numerics.Vectors.dll)

The Vector type exposes the following members.

Name | Description | |
---|---|---|

IsHardwareAccelerated | Gets a value that indicates whether vector operations are subject to hardware acceleration through JIT intrinsic support. |

Name | Description | |
---|---|---|

Abs<T> | Returns a new vector whose elements are the absolute values of the given vector's elements. | |

Add<T> | Returns a new vector whose values are the sum of each pair of elements from two given vectors. | |

AndNot<T> | Returns a new vector by performing a bitwise And Not operation on each pair of corresponding elements in two vectors. | |

AsVectorByte<T> | Reinterprets the bits of a specified vector into those of a vector of unsigned bytes. | |

AsVectorDouble<T> | Reinterprets the bits of a specified vector into those of a double-precision floating-point vector. | |

AsVectorInt16<T> | Reinterprets the bits of a specified vector into those of a vector of 16-bit integers. | |

AsVectorInt32<T> | Reinterprets the bits of a specified vector into those of a vector of integers. | |

AsVectorInt64<T> | Reinterprets the bits of a specified vector into those of a vector of long integers. | |

AsVectorSByte<T> | Reinterprets the bits of a specified vector into those of a vector of signed bytes. | |

AsVectorSingle<T> | Reinterprets the bits of a specified vector into those of a single-precision floating-point vector. | |

AsVectorUInt16<T> | Reinterprets the bits of a specified vector into those of a vector of unsigned 16-bit integers. | |

AsVectorUInt32<T> | Reinterprets the bits of a specified vector into those of a vector of unsigned integers. | |

AsVectorUInt64<T> | Reinterprets the bits of a specified vector into those of a vector of unsigned long integers. | |

BitwiseAnd<T> | Returns a new vector by performing a bitwise And operation on each pair of elements in two vectors. | |

BitwiseOr<T> | Returns a new vector by performing a bitwise Or operation on each pair of elements in two vectors. | |

ConditionalSelect(Vector<Int32>, Vector<Single>, Vector<Single>) | Creates a new single-precision vector with elements selected between two specified single-precision source vectors based on an integral mask vector. | |

ConditionalSelect(Vector<Int64>, Vector<Double>, Vector<Double>) | Creates a new double-precision vector with elements selected between two specified double-precision source vectors based on an integral mask vector. | |

ConditionalSelect<T>(Vector<T>, Vector<T>, Vector<T>) | Creates a new vector of a specified type with elements selected between two specified source vectors of the same type based on an integral mask vector. | |

Divide<T> | Returns a new vector whose values are the result of dividing the first vector's elements by the corresponding elements in the second vector. | |

Dot<T> | Returns the dot product of two vectors. | |

Equals(Vector<Double>, Vector<Double>) | Returns a new integral vector whose elements signal whether the elements in two specified double-precision vectors are equal. | |

Equals(Vector<Int32>, Vector<Int32>) | Returns a new integral vector whose elements signal whether the elements in two specified integral vectors are equal. | |

Equals(Vector<Int64>, Vector<Int64>) | Returns a new vector whose elements signal whether the elements in two specified long integer vectors are equal. | |

Equals(Vector<Single>, Vector<Single>) | Returns a new integral vector whose elements signal whether the elements in two specified single-precision vectors are equal. | |

Equals<T>(Vector<T>, Vector<T>) | Returns a new vector of a specified type whose elements signal whether the elements in two specified vectors of the same type are equal. | |

EqualsAll<T> | Returns a value that indicates whether each pair of elements in the given vectors is equal. | |

EqualsAny<T> | Returns a value that indicates whether any single pair of elements in the given vectors is equal. | |

GreaterThan(Vector<Double>, Vector<Double>) | Returns a new integral vector whose elements signal whether the elements in one double-precision floating-point vector are greater than their corresponding elements in a second double-precision floating-point vector. | |

GreaterThan(Vector<Int32>, Vector<Int32>) | Returns a new integral vector whose elements signal whether the elements in one integral vector are greater than their corresponding elements in a second integral vector. | |

GreaterThan(Vector<Int64>, Vector<Int64>) | Returns a new long integer vector whose elements signal whether the elements in one long integer vector are greater than their corresponding elements in a second long integer vector. | |

GreaterThan(Vector<Single>, Vector<Single>) | Returns a new integral vector whose elements signal whether the elements in one single-precision floating-point vector are greater than their corresponding elements in a second single-precision floating-point vector. | |

GreaterThan<T>(Vector<T>, Vector<T>) | Returns a new vector whose elements signal whether the elements in one vector of a specified type are greater than their corresponding elements in the second vector of the same time. | |

GreaterThanAll<T> | Returns a value that indicates whether all elements in the first vector are greater than the corresponding elements in the second vector. | |

GreaterThanAny<T> | Returns a value that indicates whether any element in the first vector is greater than the corresponding element in the second vector. | |

GreaterThanOrEqual(Vector<Double>, Vector<Double>) | Returns a new integral vector whose elements signal whether the elements in one vector are greater than or equal to their corresponding elements in the second double-precision floating-point vector. | |

GreaterThanOrEqual(Vector<Int32>, Vector<Int32>) | Returns a new integral vector whose elements signal whether the elements in one integral vector are greater than or equal to their corresponding elements in the second integral vector. | |

GreaterThanOrEqual(Vector<Int64>, Vector<Int64>) | Returns a new long integer vector whose elements signal whether the elements in one long integer vector are greater than or equal to their corresponding elements in the second long integer vector. | |

GreaterThanOrEqual(Vector<Single>, Vector<Single>) | Returns a new integral vector whose elements signal whether the elements in one vector are greater than or equal to their corresponding elements in the single-precision floating-point second vector. | |

GreaterThanOrEqual<T>(Vector<T>, Vector<T>) | Returns a new vector whose elements signal whether the elements in one vector of a specified type are greater than or equal to their corresponding elements in the second vector of the same type. | |

GreaterThanOrEqualAll<T> | Returns a value that indicates whether all elements in the first vector are greater than or equal to all the corresponding elements in the second vector. | |

GreaterThanOrEqualAny<T> | Returns a value that indicates whether any element in the first vector is greater than or equal to the corresponding element in the second vector. | |

LessThan(Vector<Double>, Vector<Double>) | Returns a new integral vector whose elements signal whether the elements in one double-precision floating-point vector are less than their corresponding elements in a second double-precision floating-point vector. | |

LessThan(Vector<Int32>, Vector<Int32>) | Returns a new integral vector whose elements signal whether the elements in one integral vector are less than their corresponding elements in a second integral vector. | |

LessThan(Vector<Int64>, Vector<Int64>) | Returns a new long integer vector whose elements signal whether the elements in one long integer vector are less than their corresponding elements in a second long integer vector. | |

LessThan(Vector<Single>, Vector<Single>) | Returns a new integral vector whose elements signal whether the elements in one single-precision vector are less than their corresponding elements in a second single-precision vector. | |

LessThan<T>(Vector<T>, Vector<T>) | Returns a new vector of a specified type whose elements signal whether the elements in one vector are less than their corresponding elements in the second vector. | |

LessThanAll<T> | Returns a value that indicates whether all of the elements in the first vector are less than their corresponding elements in the second vector. | |

LessThanAny<T> | Returns a value that indicates whether any element in the first vector is less than the corresponding element in the second vector. | |

LessThanOrEqual(Vector<Double>, Vector<Double>) | Returns a new integral vector whose elements signal whether the elements in one double-precision floating-point vector are less than or equal to their corresponding elements in a second double-precision floating-point vector. | |

LessThanOrEqual(Vector<Int32>, Vector<Int32>) | Returns a new integral vector whose elements signal whether the elements in one integral vector are less than or equal to their corresponding elements in a second integral vector. | |

LessThanOrEqual(Vector<Int64>, Vector<Int64>) | Returns a new long integer vector whose elements signal whether the elements in one long integer vector are less or equal to their corresponding elements in a second long integer vector. | |

LessThanOrEqual(Vector<Single>, Vector<Single>) | Returns a new integral vector whose elements signal whether the elements in one single-precision floating-point vector are less than or equal to their corresponding elements in a second single-precision floating-point vector. | |

LessThanOrEqual<T>(Vector<T>, Vector<T>) | Returns a new vector whose elements signal whether the elements in one vector are less than or equal to their corresponding elements in the second vector. | |

LessThanOrEqualAll<T> | Returns a value that indicates whether all elements in the first vector are less than or equal to their corresponding elements in the second vector. | |

LessThanOrEqualAny<T> | Returns a value that indicates whether any element in the first vector is less than or equal to the corresponding element in the second vector. | |

Max<T> | Returns a new vector whose elements are the maximum of each pair of elements in the two given vectors. | |

Min<T> | Returns a new vector whose elements are the minimum of each pair of elements in the two given vectors. | |

Multiply<T>(T, Vector<T>) | Returns a new vector whose values are a scalar value multiplied by each of the values of a specified vector. | |

Multiply<T>(Vector<T>, Vector<T>) | Returns a new vector whose values are the product of each pair of elements in two specified vectors. | |

Multiply<T>(Vector<T>, T) | Returns a new vector whose values are the values of a specified vector each multiplied by a scalar value. | |

Negate<T> | Returns a new vector whose elements are the negation of the corresponding element in the specified vector. | |

OnesComplement<T> | Returns a new vector whose elements are obtained by taking the one's complement of a specified vector's elements. | |

SquareRoot<T> | Returns a new vector whose elements are the square roots of a specified vector's elements. | |

Subtract<T> | Returns a new vector whose values are the difference between the elements in the second vector and their corresponding elements in the first vector. | |

Xor<T> | Returns a new vector by performing a bitwise exclusive Or (XOr) operation on each pair of elements in two vectors. |

Show: