Vector256<T> 结构

定义

表示指定数值类型的 256 位向量,该向量适用于并行算法的低级别优化。

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

类型参数

T

向量中元素的类型。

继承
Vector256<T>
实现

属性

AllBitsSet

获取一个新的 Vector256<T>,并将所有位设置为 1。

Count

获取 Vector256<T>T 的数量。

Indices

表示指定数值类型的 256 位向量,该向量适用于并行算法的低级别优化。

IsSupported

获取一个值,该值指示是否 T 支持 。

Item[Int32]

获取指定索引处的元素。

One

获取一个新的 Vector256<T> ,其中所有元素都初始化为 1。

Zero

获取新的 Vector256<T>,其中所有元素已初始化为零。

方法

Equals(Object)

确定指定的对象是否等于当前实例。

Equals(Vector256<T>)

确定指定的 Vector256<T> 是否等同于当前实例。

GetHashCode()

获取实例的哈希代码。

ToString()

将当前实例转换为等效的字符串表示形式。

运算符

Addition(Vector256<T>, Vector256<T>)

添加两个向量以计算其和。

BitwiseAnd(Vector256<T>, Vector256<T>)

计算两个向量的按位和 。

BitwiseOr(Vector256<T>, Vector256<T>)

计算两个向量的按位或 。

Division(Vector256<T>, T)

将向量除以标量以计算每个元素的商。

Division(Vector256<T>, Vector256<T>)

将两个向量相除以计算其商。

Equality(Vector256<T>, Vector256<T>)

比较两个向量以确定所有元素是否相等。

ExclusiveOr(Vector256<T>, Vector256<T>)

计算两个向量的独占或 。

Inequality(Vector256<T>, Vector256<T>)

比较两个向量以确定是否有任何元素不相等。

LeftShift(Vector256<T>, Int32)

将向量的每个元素左移指定量。

Multiply(T, Vector256<T>)

将向量乘以标量以计算其乘积。

Multiply(Vector256<T>, T)

将向量乘以标量以计算其乘积。

Multiply(Vector256<T>, Vector256<T>)

将两个向量相乘以计算它们的元素乘积。

OnesComplement(Vector256<T>)

计算向量的 1-补。

RightShift(Vector256<T>, Int32)

(向量向量右侧的每个元素) 有符号的移位指定量。

Subtraction(Vector256<T>, Vector256<T>)

减去两个向量以计算其差值。

UnaryNegation(Vector256<T>)

计算向量的一元求反。

UnaryPlus(Vector256<T>)

返回未更改的给定向量。

UnsignedRightShift(Vector256<T>, Int32)

将 (无符号) 向量向量右侧的每个元素按指定量移位。

扩展方法

As<T,U>(Vector256<T>)

TFrom 类型的 Vector256<T> 重新解释为 TTo 类型的新 Vector256<T>

AsByte<T>(Vector256<T>)

Vector256<T> 重新解释为 Byte 类型的新 Vector256

AsDouble<T>(Vector256<T>)

Vector256<T> 重新解释为 Double 类型的新 Vector256

AsInt16<T>(Vector256<T>)

Vector256<T> 重新解释为 Int16 类型的新 Vector256

AsInt32<T>(Vector256<T>)

Vector256<T> 重新解释为 Int32 类型的新 Vector256

AsInt64<T>(Vector256<T>)

Vector256<T> 重新解释为 Int64 类型的新 Vector256

AsNInt<T>(Vector256<T>)

Vector256<T> 重新解释为新的 Vector256<T>

AsNUInt<T>(Vector256<T>)

Vector256<T> 重新解释为新的 Vector256<T>

AsSByte<T>(Vector256<T>)

Vector256<T> 重新解释为 SByte 类型的新 Vector256

AsSingle<T>(Vector256<T>)

Vector256<T> 重新解释为 Single 类型的新 Vector256

AsUInt16<T>(Vector256<T>)

Vector256<T> 重新解释为 UInt16 类型的新 Vector256

AsUInt32<T>(Vector256<T>)

Vector256<T> 重新解释为 UInt32 类型的新 Vector256

AsUInt64<T>(Vector256<T>)

Vector256<T> 重新解释为 UInt64 类型的新 Vector256

AsVector<T>(Vector256<T>)

Vector256<T> 重新解释为新的 Vector<T>

CopyTo<T>(Vector256<T>, T[])

Vector256<T> 复制到给定数组。

CopyTo<T>(Vector256<T>, T[], Int32)

Vector256<T> 复制到从指定索引开始的给定数组。

CopyTo<T>(Vector256<T>, Span<T>)

Vector256<T> 复制到给定范围。

ExtractMostSignificantBits<T>(Vector256<T>)

从向量中的每个元素中提取最高有效位。

GetElement<T>(Vector256<T>, Int32)

获取指定索引处的元素。

GetLower<T>(Vector256<T>)

获取低 128 位的值作为新的 Vector128<T>

GetUpper<T>(Vector256<T>)

获取高 128 位的值作为新的 Vector128<T>

Store<T>(Vector256<T>, T*)

在给定目标处存储向量。

StoreAligned<T>(Vector256<T>, T*)

将向量存储在给定的对齐目标处。

StoreAlignedNonTemporal<T>(Vector256<T>, T*)

将向量存储在给定的对齐目标处。

StoreUnsafe<T>(Vector256<T>, T)

在给定目标处存储向量。

StoreUnsafe<T>(Vector256<T>, T, UIntPtr)

在给定目标处存储向量。

ToScalar<T>(Vector256<T>)

将给定向量转换为包含第一个元素的值的标量。

ToVector512<T>(Vector256<T>)

将给定向量转换为新的 Vector512<T> ,并将低 256 位设置为给定向量的值,并将高 256 位初始化为零。

ToVector512Unsafe<T>(Vector256<T>)

将给定向量转换为新的 Vector512<T> ,并将低 256 位设置为给定向量的值,并将高 256 位保持未初始化。

TryCopyTo<T>(Vector256<T>, Span<T>)

尝试将 复制到 Vector<T> 给定范围。

WithElement<T>(Vector256<T>, Int32, T)

创建一个新的 Vector256<T>,将指定索引处的元素设置为指定值,并将其余元素设置为与给定向量中的值相同的值。

WithLower<T>(Vector256<T>, Vector128<T>)

创建一个新的 Vector256<T>,将低 128 位设置为指定值,并将高 128 位设置为与给定向量中的值相同的值。

WithUpper<T>(Vector256<T>, Vector128<T>)

创建一个新的 Vector256<T>,将高 128 位设置为指定值,并将低 128 位设置为与给定向量中的值相同的值。

适用于