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> ,其中所有專案都會初始化為一個專案。

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>)

計算向量的單一補數。

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 位元值則設定為與指定向量中的值相同。

適用於