Vector128<T> 結構

定義

表示指定之數數值型別的 128 位向量,適用于平行演算法的低階優化。

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

類型參數

T

向量中專案的型別。

繼承
Vector128<T>
實作

屬性

AllBitsSet

取得新的 Vector128<T>,並將所有位元設定為 1。

Count

取得位在 Vector128<T> 中的 T 數目。

Indices

表示指定之數數值型別的 128 位向量,適用于平行演算法的低階優化。

IsSupported

取得值,這個值表示是否 T 受到支援。

Item[Int32]

取得位在指定索引處的元素。

One

取得新的 Vector128<T> ,其中所有專案都會初始化為一個專案。

Zero

取得所有項目皆初始化為零的新 Vector128<T>

方法

Equals(Object)

判斷指定的物件是否和目前的執行個體相等。

Equals(Vector128<T>)

判斷指定的 Vector128<T> 和目前的執行個體是否相等。

GetHashCode()

取得執行個體的雜湊碼。

ToString()

將目前的執行個體轉換為對等字串表示。

運算子

Addition(Vector128<T>, Vector128<T>)

加入兩個向量來計算其總和。

BitwiseAnd(Vector128<T>, Vector128<T>)

計算兩個向量的位和 。

BitwiseOr(Vector128<T>, Vector128<T>)

計算兩個向量的位或 。

Division(Vector128<T>, T)

將向量除以純量來計算每個元素商數。

Division(Vector128<T>, Vector128<T>)

將兩個向量除以計算其商數。

Equality(Vector128<T>, Vector128<T>)

比較兩個向量,以判斷所有元素是否相等。

ExclusiveOr(Vector128<T>, Vector128<T>)

計算兩個向量的獨佔或兩個向量。

Inequality(Vector128<T>, Vector128<T>)

比較兩個向量,以判斷是否有任何元素不相等。

LeftShift(Vector128<T>, Int32)

將向量的每個元素左移指定的數量。

Multiply(T, Vector128<T>)

將向量乘以純量來計算其乘積。

Multiply(Vector128<T>, T)

將向量乘以純量來計算其乘積。

Multiply(Vector128<T>, Vector128<T>)

將兩個向量相乘以計算其元素乘積。

OnesComplement(Vector128<T>)

計算向量的單一補數。

RightShift(Vector128<T>, Int32)

依指定的數量,將向量右方的每個元素) (帶正負號的移位。

Subtraction(Vector128<T>, Vector128<T>)

減去兩個向量來計算其差異。

UnaryNegation(Vector128<T>)

計算向量的一元負數。

UnaryPlus(Vector128<T>)

傳回指定的向量未變更。

UnsignedRightShift(Vector128<T>, Int32)

(不帶正負號) 指定數量向量的每個元素移位。

擴充方法

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

會將 TFrom 類型的 Vector128<T> 重新解譯為 TTo 類型新的 Vector128<T>

AsByte<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 Byte 類型新的 Vector128

AsDouble<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 Double 類型新的 Vector128

AsInt16<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 Int16 類型新的 Vector128

AsInt32<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 Int32 類型新的 Vector128

AsInt64<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 Int64 類型新的 Vector128

AsNInt<T>(Vector128<T>)

Vector128<T> 重新解譯為新的 Vector128<T>

AsNUInt<T>(Vector128<T>)

Vector128<T> 重新解譯為新的 Vector128<T>

AsSByte<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 SByte 類型新的 Vector128

AsSingle<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 Single 類型新的 Vector128

AsUInt16<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 UInt16 類型新的 Vector128

AsUInt32<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 UInt32 類型新的 Vector128

AsUInt64<T>(Vector128<T>)

會將 Vector128<T> 重新解譯為 UInt64 類型新的 Vector128

AsVector<T>(Vector128<T>)

Vector128<T> 重新解譯為新的 Vector<T>

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

Vector128<T> 複製到指定的陣列。

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

Vector128<T> 指定的索引處開始,將 複製到指定的陣列。

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

Vector128<T> 複製到指定的範圍。

ExtractMostSignificantBits<T>(Vector128<T>)

從向量中的每個元素擷取最重要的位。

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

取得位在指定索引處的元素。

GetLower<T>(Vector128<T>)

取得下層 64 位元值作為新的 Vector64<T>

GetUpper<T>(Vector128<T>)

取得上層 64 位元值作為新的 Vector64<T>

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

將向量儲存在指定的目的地。

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

將向量儲存在指定的對齊目的地。

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

將向量儲存在指定的對齊目的地。

StoreUnsafe<T>(Vector128<T>, T)

將向量儲存在指定的目的地。

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

將向量儲存在指定的目的地。

ToScalar<T>(Vector128<T>)

將指定向量轉換成包含第一個項目值的純量。

ToVector256<T>(Vector128<T>)

將指定向量轉換為新的 Vector256<T>,將下層 128 位元設定為指定向量值,並將上層 128 位元初始化為零。

ToVector256Unsafe<T>(Vector128<T>)

將指定向量轉換為新的 Vector256<T>,將下層 128 位元設定為指定向量值,並將上層 128 位元保留為未初始化。

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

嘗試將 複製到 Vector<T> 指定的範圍。

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

建立新的 Vector128<T>,其中指定索引處的項目設為指定值,且其餘項目設定為與指定向量中值的相同值。

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

建立新的 Vector128<T>,其中下層 64 位元設定為指定值,且上層 64 位元則設定為與指定向量中值的相同值。

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

建立新的 Vector128<T>,其中上層 64 位元會設定為指定值,並將下層 64 位元的值設定為與指定向量中的值相同。

適用於