語言

Vector128<T> 結構

定義

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

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

類型參數

T

向量中專案的型別。

繼承
Vector128<T>
實作

屬性

名稱 Description
AllBitsSet

新機則 Vector128<T> 所有位元都設為 1。

Count

得到 的數字 T 是 Vector128<T>。

Indices

新物件 Vector128<T> 會被設定為索引。

IsSupported

會得到一個表示是否 T 支援的值。

Item[Int32]

取得位於指定索引處的專案。

One

會獲得 Vector128<T> 一個所有元素初始化為一的新版本。

Zero

會獲得 Vector128<T> 一個所有元素初始化為零的新版本。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的實例。

Equals(Vector128<T>)

判斷指定的 Vector128<T> 是否等於當前實例。

GetHashCode()

取得該實例的雜湊碼。

ToString()

將目前實例轉換為等價的字串表示法。

運算子

名稱 Description
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)

將向量中的每個元素(無符號)向右偏移指定幅度。

擴充屬性

名稱 Description
E

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

Epsilon

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

NaN

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

NegativeInfinity

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

NegativeOne

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

NegativeZero

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

Pi

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

PositiveInfinity

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

SignSequence

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

Tau

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

擴充方法

名稱 Description
As<T,U>(Vector128<T>)

將 Vector128<T> 的 TFrom 型態 重新詮釋為型 Vector128<T> 態 TTo的新 。

AsByte<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 Byte 。

AsDouble<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 Double 。

AsInt16<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 Int16 。

AsInt32<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 Int32 。

AsInt64<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 Int64 。

AsNInt<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為新的 Vector128<T>。

AsNUInt<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為新的 Vector128<T>。

AsSByte<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 SByte 。

AsSingle<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 Single 。

AsUInt16<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 UInt16 。

AsUInt32<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 UInt32 。

AsUInt64<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為一個類型的Vector128新 UInt64 。

AsVector<T>(Vector128<T>)

將 a Vector128<T> 重新詮釋為新的 Vector<T>。

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

將 a Vector128<T> 複製到指定區間。

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

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

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

將 a 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, UIntPtr)

在指定目的地儲存一個向量。

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

在指定目的地儲存一個向量。

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

嘗試將 a Vector<T> 複製到指定區間。

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

建立一個新 Vector128<T> Entry,將指定索引的元素設定為指定值,其餘元素則設定為與給定向量中的相同值。

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

建立一個新版本 Vector128<T> ,將較低的 64 位元設為指定值,上方 64 位元設為與給定向量相同的值。

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

建立一個新版本 Vector128<T> ,將上方64位元設為指定值,下64位元設為與給定向量相同的值。

適用於