语言

Vector512<T> 结构

定义

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

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

类型参数

T

向量中的元素的类型。

继承
Vector512<T>
实现

属性

名称 说明
AllBitsSet

获取所有位都设置为 1 的新 Vector512<T> 位。

Count

获取在一个T中的数目Vector512<T>。

Indices

获取一个新 Vector512<T> 元素,并将元素设置为其索引。

IsSupported

获取 true 是否 T 受支持;否则为 false。

Item[Int32]

获取指定索引处的元素。

One

获取初始化为一个元素的所有元素的新 Vector512<T> 元素。

Zero

获取初始化为零的所有元素的新 Vector512<T> 元素。

方法

名称 说明
Equals(Object)

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

Equals(Vector512<T>)

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

GetHashCode()

获取实例的哈希代码。

ToString()

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

运算符

名称 说明
Addition(Vector512<T>, Vector512<T>)

添加两个向量来计算其总和。

BitwiseAnd(Vector512<T>, Vector512<T>)

计算两个向量的按位和两个向量。

BitwiseOr(Vector512<T>, Vector512<T>)

计算两个向量的按位或两个向量。

Division(Vector512<T>, T)

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

Division(Vector512<T>, Vector512<T>)

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

Equality(Vector512<T>, Vector512<T>)

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

ExclusiveOr(Vector512<T>, Vector512<T>)

计算两个向量的独占或两个向量。

Inequality(Vector512<T>, Vector512<T>)

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

LeftShift(Vector512<T>, Int32)

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

Multiply(T, Vector512<T>)

将矢量乘以标量来计算其产品。

Multiply(Vector512<T>, T)

将矢量乘以标量来计算其产品。

Multiply(Vector512<T>, Vector512<T>)

将两个向量相乘以计算其元素乘积。

OnesComplement(Vector512<T>)

计算矢量的补数。

RightShift(Vector512<T>, Int32)

按指定量向量向右移动 (signed) 的每个元素。

Subtraction(Vector512<T>, Vector512<T>)

减去两个矢量以计算其差异。

UnaryNegation(Vector512<T>)

计算向量的一元求反。

UnaryPlus(Vector512<T>)

返回给定向量不变。

UnsignedRightShift(Vector512<T>, Int32)

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

扩展属性

名称 说明
E

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

Epsilon

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

NaN

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

NegativeInfinity

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

NegativeOne

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

NegativeZero

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

Pi

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

PositiveInfinity

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

SignSequence

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

Tau

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

扩展方法

名称 说明
As<TFrom,TTo>(Vector512<TFrom>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsByte<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsDouble<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsInt16<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsInt32<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsInt64<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsNInt<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsNUInt<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsSByte<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsSingle<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsUInt16<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsUInt32<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsUInt64<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector512<T>。

AsVector<T>(Vector512<T>)

重新解释 Vector512<T> 为新的 Vector<T>。

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

将 a Vector512<T> 复制到给定范围。

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

从指定索引处开始,将 a Vector512<T> 复制到给定数组。

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

将 a Vector512<T> 复制到给定数组。

ExtractMostSignificantBits<T>(Vector512<T>)

从向量中的每个元素中提取最重要的位。

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

获取指定索引处的元素。

GetLower<T>(Vector512<T>)

获取低 256 位作为新 Vector256<T>值的值。

GetUpper<T>(Vector512<T>)

获取新 256 位 Vector256<T>的上限值。

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

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

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

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

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

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

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

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

StoreUnsafe<T>(Vector512<T>, T)

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

ToScalar<T>(Vector512<T>)

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

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

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

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

Vector512<T>使用指定索引处的元素设置为指定值,其余元素设置为与给定向量中的元素相同的值。

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

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

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

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

适用于