Vector Vector Vector Vector Class

定义

提供用于创建、操作、结合使用和转换泛型向量的静态简便方法的集合。Provides a collection of static convenience methods for creating, manipulating, combining, and converting generic vectors.

public ref class Vector abstract sealed
public static class Vector
type Vector = class
Public Class Vector
继承
VectorVectorVectorVector

属性

IsHardwareAccelerated IsHardwareAccelerated IsHardwareAccelerated IsHardwareAccelerated

获取一个值,该值指示向量运算是否会通过 JIT 内在支持进行硬件加速。Gets a value that indicates whether vector operations are subject to hardware acceleration through JIT intrinsic support.

方法

Abs<T>(Vector<T>) Abs<T>(Vector<T>) Abs<T>(Vector<T>) Abs<T>(Vector<T>)

返回一个新向量,其元素是给定向量的元素的绝对值。Returns a new vector whose elements are the absolute values of the given vector's elements.

Add<T>(Vector<T>, Vector<T>) Add<T>(Vector<T>, Vector<T>) Add<T>(Vector<T>, Vector<T>) Add<T>(Vector<T>, Vector<T>)

返回一个新向量,其值是两个给定向量中的每对元素的总和。Returns a new vector whose values are the sum of each pair of elements from two given vectors.

AndNot<T>(Vector<T>, Vector<T>) AndNot<T>(Vector<T>, Vector<T>) AndNot<T>(Vector<T>, Vector<T>) AndNot<T>(Vector<T>, Vector<T>)

通过在两个向量中的每对相应元素上执行按位“与非”运算,返回一个新向量。Returns a new vector by performing a bitwise And Not operation on each pair of corresponding elements in two vectors.

AsVectorByte<T>(Vector<T>) AsVectorByte<T>(Vector<T>) AsVectorByte<T>(Vector<T>) AsVectorByte<T>(Vector<T>)

将指定向量的位重新解释为无符号字节向量的位。Reinterprets the bits of a specified vector into those of a vector of unsigned bytes.

AsVectorDouble<T>(Vector<T>) AsVectorDouble<T>(Vector<T>) AsVectorDouble<T>(Vector<T>) AsVectorDouble<T>(Vector<T>)

将指定向量的位重新解释为双精度浮点向量的位。Reinterprets the bits of a specified vector into those of a double-precision floating-point vector.

AsVectorInt16<T>(Vector<T>) AsVectorInt16<T>(Vector<T>) AsVectorInt16<T>(Vector<T>) AsVectorInt16<T>(Vector<T>)

将指定向量的位重新解释为 16 位整型向量的位。Reinterprets the bits of a specified vector into those of a vector of 16-bit integers.

AsVectorInt32<T>(Vector<T>) AsVectorInt32<T>(Vector<T>) AsVectorInt32<T>(Vector<T>) AsVectorInt32<T>(Vector<T>)

将指定向量的位重新解释为整型向量的位。Reinterprets the bits of a specified vector into those of a vector of integers.

AsVectorInt64<T>(Vector<T>) AsVectorInt64<T>(Vector<T>) AsVectorInt64<T>(Vector<T>) AsVectorInt64<T>(Vector<T>)

将指定向量的位重新解释为长整型向量的位。Reinterprets the bits of a specified vector into those of a vector of long integers.

AsVectorSByte<T>(Vector<T>) AsVectorSByte<T>(Vector<T>) AsVectorSByte<T>(Vector<T>) AsVectorSByte<T>(Vector<T>)

将指定向量的位重新解释为带符号字节向量的位。Reinterprets the bits of a specified vector into those of a vector of signed bytes.

AsVectorSingle<T>(Vector<T>) AsVectorSingle<T>(Vector<T>) AsVectorSingle<T>(Vector<T>) AsVectorSingle<T>(Vector<T>)

将指定向量的位重新解释为单精度浮点向量的位。Reinterprets the bits of a specified vector into those of a single-precision floating-point vector.

AsVectorUInt16<T>(Vector<T>) AsVectorUInt16<T>(Vector<T>) AsVectorUInt16<T>(Vector<T>) AsVectorUInt16<T>(Vector<T>)

将指定向量的位重新解释为无符号 16 位整型向量的位。Reinterprets the bits of a specified vector into those of a vector of unsigned 16-bit integers.

AsVectorUInt32<T>(Vector<T>) AsVectorUInt32<T>(Vector<T>) AsVectorUInt32<T>(Vector<T>) AsVectorUInt32<T>(Vector<T>)

将指定向量的位重新解释为无符号整型向量的位。Reinterprets the bits of a specified vector into those of a vector of unsigned integers.

AsVectorUInt64<T>(Vector<T>) AsVectorUInt64<T>(Vector<T>) AsVectorUInt64<T>(Vector<T>) AsVectorUInt64<T>(Vector<T>)

将指定向量的位重新解释为无符号长整型向量的位。Reinterprets the bits of a specified vector into those of a vector of unsigned long integers.

BitwiseAnd<T>(Vector<T>, Vector<T>) BitwiseAnd<T>(Vector<T>, Vector<T>) BitwiseAnd<T>(Vector<T>, Vector<T>) BitwiseAnd<T>(Vector<T>, Vector<T>)

通过在两个向量中的每对元素上执行按位 And 运算,返回一个新向量。Returns a new vector by performing a bitwise And operation on each pair of elements in two vectors.

BitwiseOr<T>(Vector<T>, Vector<T>) BitwiseOr<T>(Vector<T>, Vector<T>) BitwiseOr<T>(Vector<T>, Vector<T>) BitwiseOr<T>(Vector<T>, Vector<T>)

通过在两个向量中的每对元素上执行按位 Or 运算,返回一个新向量。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>) ConditionalSelect(Vector<Int32>, Vector<Single>, Vector<Single>) ConditionalSelect(Vector<Int32>, Vector<Single>, Vector<Single>) 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>) ConditionalSelect(Vector<Int64>, Vector<Double>, Vector<Double>) ConditionalSelect(Vector<Int64>, Vector<Double>, Vector<Double>) 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>) ConditionalSelect<T>(Vector<T>, Vector<T>, Vector<T>) ConditionalSelect<T>(Vector<T>, Vector<T>, Vector<T>) 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.

ConvertToDouble(Vector<Int64>) ConvertToDouble(Vector<Int64>) ConvertToDouble(Vector<Int64>) ConvertToDouble(Vector<Int64>)
ConvertToDouble(Vector<UInt64>) ConvertToDouble(Vector<UInt64>) ConvertToDouble(Vector<UInt64>) ConvertToDouble(Vector<UInt64>)
ConvertToInt32(Vector<Single>) ConvertToInt32(Vector<Single>) ConvertToInt32(Vector<Single>) ConvertToInt32(Vector<Single>)
ConvertToInt64(Vector<Double>) ConvertToInt64(Vector<Double>) ConvertToInt64(Vector<Double>) ConvertToInt64(Vector<Double>)
ConvertToSingle(Vector<Int32>) ConvertToSingle(Vector<Int32>) ConvertToSingle(Vector<Int32>) ConvertToSingle(Vector<Int32>)
ConvertToSingle(Vector<UInt32>) ConvertToSingle(Vector<UInt32>) ConvertToSingle(Vector<UInt32>) ConvertToSingle(Vector<UInt32>)
ConvertToUInt32(Vector<Single>) ConvertToUInt32(Vector<Single>) ConvertToUInt32(Vector<Single>) ConvertToUInt32(Vector<Single>)
ConvertToUInt64(Vector<Double>) ConvertToUInt64(Vector<Double>) ConvertToUInt64(Vector<Double>) ConvertToUInt64(Vector<Double>)
Divide<T>(Vector<T>, Vector<T>) Divide<T>(Vector<T>, Vector<T>) Divide<T>(Vector<T>, Vector<T>) Divide<T>(Vector<T>, Vector<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>(Vector<T>, Vector<T>) Dot<T>(Vector<T>, Vector<T>) Dot<T>(Vector<T>, Vector<T>) Dot<T>(Vector<T>, Vector<T>)

返回两个向量的点积。Returns the dot product of two vectors.

Equals(Vector<Double>, Vector<Double>) Equals(Vector<Double>, Vector<Double>) Equals(Vector<Double>, Vector<Double>) 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>) Equals(Vector<Int32>, Vector<Int32>) Equals(Vector<Int32>, Vector<Int32>) 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>) Equals(Vector<Int64>, Vector<Int64>) Equals(Vector<Int64>, Vector<Int64>) 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>) Equals(Vector<Single>, Vector<Single>) Equals(Vector<Single>, Vector<Single>) 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>) Equals<T>(Vector<T>, Vector<T>) Equals<T>(Vector<T>, Vector<T>) 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>(Vector<T>, Vector<T>) EqualsAll<T>(Vector<T>, Vector<T>) EqualsAll<T>(Vector<T>, Vector<T>) EqualsAll<T>(Vector<T>, Vector<T>)

返回一个值,该值指示两个给定向量中的每对元素是否相等。Returns a value that indicates whether each pair of elements in the given vectors is equal.

EqualsAny<T>(Vector<T>, Vector<T>) EqualsAny<T>(Vector<T>, Vector<T>) EqualsAny<T>(Vector<T>, Vector<T>) EqualsAny<T>(Vector<T>, Vector<T>)

返回一个值,该值指示两个给定向量中的任意元素对是否相等。Returns a value that indicates whether any single pair of elements in the given vectors is equal.

GreaterThan(Vector<Double>, Vector<Double>) GreaterThan(Vector<Double>, Vector<Double>) GreaterThan(Vector<Double>, Vector<Double>) 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>) GreaterThan(Vector<Int32>, Vector<Int32>) GreaterThan(Vector<Int32>, Vector<Int32>) 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>) GreaterThan(Vector<Int64>, Vector<Int64>) GreaterThan(Vector<Int64>, Vector<Int64>) 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>) GreaterThan(Vector<Single>, Vector<Single>) GreaterThan(Vector<Single>, Vector<Single>) 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>) GreaterThan<T>(Vector<T>, Vector<T>) GreaterThan<T>(Vector<T>, Vector<T>) 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>(Vector<T>, Vector<T>) GreaterThanAll<T>(Vector<T>, Vector<T>) GreaterThanAll<T>(Vector<T>, Vector<T>) GreaterThanAll<T>(Vector<T>, Vector<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>(Vector<T>, Vector<T>) GreaterThanAny<T>(Vector<T>, Vector<T>) GreaterThanAny<T>(Vector<T>, Vector<T>) GreaterThanAny<T>(Vector<T>, Vector<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<Single>, Vector<Single>) GreaterThanOrEqual(Vector<Single>, Vector<Single>) GreaterThanOrEqual(Vector<Single>, Vector<Single>) 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(Vector<Int64>, Vector<Int64>) GreaterThanOrEqual(Vector<Int64>, Vector<Int64>) GreaterThanOrEqual(Vector<Int64>, Vector<Int64>) 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<Int32>, Vector<Int32>) GreaterThanOrEqual(Vector<Int32>, Vector<Int32>) GreaterThanOrEqual(Vector<Int32>, Vector<Int32>) 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<Double>, Vector<Double>) GreaterThanOrEqual(Vector<Double>, Vector<Double>) GreaterThanOrEqual(Vector<Double>, Vector<Double>) 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<T>(Vector<T>, Vector<T>) GreaterThanOrEqual<T>(Vector<T>, Vector<T>) GreaterThanOrEqual<T>(Vector<T>, Vector<T>) 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>(Vector<T>, Vector<T>) GreaterThanOrEqualAll<T>(Vector<T>, Vector<T>) GreaterThanOrEqualAll<T>(Vector<T>, Vector<T>) GreaterThanOrEqualAll<T>(Vector<T>, Vector<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>(Vector<T>, Vector<T>) GreaterThanOrEqualAny<T>(Vector<T>, Vector<T>) GreaterThanOrEqualAny<T>(Vector<T>, Vector<T>) GreaterThanOrEqualAny<T>(Vector<T>, Vector<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>) LessThan(Vector<Double>, Vector<Double>) LessThan(Vector<Double>, Vector<Double>) 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>) LessThan(Vector<Int32>, Vector<Int32>) LessThan(Vector<Int32>, Vector<Int32>) 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>) LessThan(Vector<Int64>, Vector<Int64>) LessThan(Vector<Int64>, Vector<Int64>) 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>) LessThan(Vector<Single>, Vector<Single>) LessThan(Vector<Single>, Vector<Single>) 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>) LessThan<T>(Vector<T>, Vector<T>) LessThan<T>(Vector<T>, Vector<T>) 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>(Vector<T>, Vector<T>) LessThanAll<T>(Vector<T>, Vector<T>) LessThanAll<T>(Vector<T>, Vector<T>) LessThanAll<T>(Vector<T>, Vector<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>(Vector<T>, Vector<T>) LessThanAny<T>(Vector<T>, Vector<T>) LessThanAny<T>(Vector<T>, Vector<T>) LessThanAny<T>(Vector<T>, Vector<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>) LessThanOrEqual(Vector<Double>, Vector<Double>) LessThanOrEqual(Vector<Double>, Vector<Double>) 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>) LessThanOrEqual(Vector<Int32>, Vector<Int32>) LessThanOrEqual(Vector<Int32>, Vector<Int32>) 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>) LessThanOrEqual(Vector<Int64>, Vector<Int64>) LessThanOrEqual(Vector<Int64>, Vector<Int64>) 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>) LessThanOrEqual(Vector<Single>, Vector<Single>) LessThanOrEqual(Vector<Single>, Vector<Single>) 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>) LessThanOrEqual<T>(Vector<T>, Vector<T>) LessThanOrEqual<T>(Vector<T>, Vector<T>) 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>(Vector<T>, Vector<T>) LessThanOrEqualAll<T>(Vector<T>, Vector<T>) LessThanOrEqualAll<T>(Vector<T>, Vector<T>) LessThanOrEqualAll<T>(Vector<T>, Vector<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>(Vector<T>, Vector<T>) LessThanOrEqualAny<T>(Vector<T>, Vector<T>) LessThanOrEqualAny<T>(Vector<T>, Vector<T>) LessThanOrEqualAny<T>(Vector<T>, Vector<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>(Vector<T>, Vector<T>) Max<T>(Vector<T>, Vector<T>) Max<T>(Vector<T>, Vector<T>) Max<T>(Vector<T>, Vector<T>)

返回一个新向量,其元素是两个给定向量中每对元素的最大值。Returns a new vector whose elements are the maximum of each pair of elements in the two given vectors.

Min<T>(Vector<T>, Vector<T>) Min<T>(Vector<T>, Vector<T>) Min<T>(Vector<T>, Vector<T>) Min<T>(Vector<T>, Vector<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>) Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>) 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>) Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>) 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) Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T)

返回一个新向量,其值是乘以标量值的指定向量的每个值。Returns a new vector whose values are the values of a specified vector each multiplied by a scalar value.

Narrow(Vector<Double>, Vector<Double>) Narrow(Vector<Double>, Vector<Double>) Narrow(Vector<Double>, Vector<Double>) Narrow(Vector<Double>, Vector<Double>)
Narrow(Vector<Int16>, Vector<Int16>) Narrow(Vector<Int16>, Vector<Int16>) Narrow(Vector<Int16>, Vector<Int16>) Narrow(Vector<Int16>, Vector<Int16>)
Narrow(Vector<Int32>, Vector<Int32>) Narrow(Vector<Int32>, Vector<Int32>) Narrow(Vector<Int32>, Vector<Int32>) Narrow(Vector<Int32>, Vector<Int32>)
Narrow(Vector<Int64>, Vector<Int64>) Narrow(Vector<Int64>, Vector<Int64>) Narrow(Vector<Int64>, Vector<Int64>) Narrow(Vector<Int64>, Vector<Int64>)
Narrow(Vector<UInt16>, Vector<UInt16>) Narrow(Vector<UInt16>, Vector<UInt16>) Narrow(Vector<UInt16>, Vector<UInt16>) Narrow(Vector<UInt16>, Vector<UInt16>)
Narrow(Vector<UInt32>, Vector<UInt32>) Narrow(Vector<UInt32>, Vector<UInt32>) Narrow(Vector<UInt32>, Vector<UInt32>) Narrow(Vector<UInt32>, Vector<UInt32>)
Narrow(Vector<UInt64>, Vector<UInt64>) Narrow(Vector<UInt64>, Vector<UInt64>) Narrow(Vector<UInt64>, Vector<UInt64>) Narrow(Vector<UInt64>, Vector<UInt64>)
Negate<T>(Vector<T>) Negate<T>(Vector<T>) Negate<T>(Vector<T>) Negate<T>(Vector<T>)

返回一个新向量,其元素是对指定向量中相应元素的求反。Returns a new vector whose elements are the negation of the corresponding element in the specified vector.

OnesComplement<T>(Vector<T>) OnesComplement<T>(Vector<T>) OnesComplement<T>(Vector<T>) OnesComplement<T>(Vector<T>)

返回一个新向量,其元素是通过取用指定向量的元素的二进制反码来获取的。Returns a new vector whose elements are obtained by taking the one's complement of a specified vector's elements.

SquareRoot<T>(Vector<T>) SquareRoot<T>(Vector<T>) SquareRoot<T>(Vector<T>) SquareRoot<T>(Vector<T>)

返回一个新向量,其元素是指定向量的元素的平方根。Returns a new vector whose elements are the square roots of a specified vector's elements.

Subtract<T>(Vector<T>, Vector<T>) Subtract<T>(Vector<T>, Vector<T>) Subtract<T>(Vector<T>, Vector<T>) Subtract<T>(Vector<T>, Vector<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.

Widen(Vector<UInt16>, Vector<UInt32>, Vector<UInt32>) Widen(Vector<UInt16>, Vector<UInt32>, Vector<UInt32>) Widen(Vector<UInt16>, Vector<UInt32>, Vector<UInt32>) Widen(Vector<UInt16>, Vector<UInt32>, Vector<UInt32>)
Widen(Vector<Single>, Vector<Double>, Vector<Double>) Widen(Vector<Single>, Vector<Double>, Vector<Double>) Widen(Vector<Single>, Vector<Double>, Vector<Double>) Widen(Vector<Single>, Vector<Double>, Vector<Double>)
Widen(Vector<SByte>, Vector<Int16>, Vector<Int16>) Widen(Vector<SByte>, Vector<Int16>, Vector<Int16>) Widen(Vector<SByte>, Vector<Int16>, Vector<Int16>) Widen(Vector<SByte>, Vector<Int16>, Vector<Int16>)
Widen(Vector<UInt32>, Vector<UInt64>, Vector<UInt64>) Widen(Vector<UInt32>, Vector<UInt64>, Vector<UInt64>) Widen(Vector<UInt32>, Vector<UInt64>, Vector<UInt64>) Widen(Vector<UInt32>, Vector<UInt64>, Vector<UInt64>)
Widen(Vector<Int16>, Vector<Int32>, Vector<Int32>) Widen(Vector<Int16>, Vector<Int32>, Vector<Int32>) Widen(Vector<Int16>, Vector<Int32>, Vector<Int32>) Widen(Vector<Int16>, Vector<Int32>, Vector<Int32>)
Widen(Vector<Byte>, Vector<UInt16>, Vector<UInt16>) Widen(Vector<Byte>, Vector<UInt16>, Vector<UInt16>) Widen(Vector<Byte>, Vector<UInt16>, Vector<UInt16>) Widen(Vector<Byte>, Vector<UInt16>, Vector<UInt16>)
Widen(Vector<Int32>, Vector<Int64>, Vector<Int64>) Widen(Vector<Int32>, Vector<Int64>, Vector<Int64>) Widen(Vector<Int32>, Vector<Int64>, Vector<Int64>) Widen(Vector<Int32>, Vector<Int64>, Vector<Int64>)
Xor<T>(Vector<T>, Vector<T>) Xor<T>(Vector<T>, Vector<T>) Xor<T>(Vector<T>, Vector<T>) Xor<T>(Vector<T>, Vector<T>)

通过在两个向量中的每对元素上执行按位“异或”(XOr) 运算,返回一个新向量。Returns a new vector by performing a bitwise exclusive Or (XOr) operation on each pair of elements in two vectors.

适用于