語言

Vector256<T> 結構

定義

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

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

類型參數

T

向量中專案的型別。

繼承
Vector256<T>
實作

屬性

名稱 Description
AllBitsSet

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

Count

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

Indices

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

IsSupported

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

Item[Int32]

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

One

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

Zero

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

方法

名稱 Description
Equals(Object)

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

Equals(Vector256<T>)

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

GetHashCode()

取得該實例的雜湊碼。

ToString()

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

運算子

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

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

擴充屬性

名稱 Description
E

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

Epsilon

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

NaN

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

NegativeInfinity

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

NegativeOne

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

NegativeZero

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

Pi

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

PositiveInfinity

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

SignSequence

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

Tau

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

擴充方法

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

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

AsByte<T>(Vector256<T>)

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

AsDouble<T>(Vector256<T>)

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

AsInt16<T>(Vector256<T>)

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

AsInt32<T>(Vector256<T>)

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

AsInt64<T>(Vector256<T>)

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

AsNInt<T>(Vector256<T>)

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

AsNUInt<T>(Vector256<T>)

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

AsSByte<T>(Vector256<T>)

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

AsSingle<T>(Vector256<T>)

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

AsUInt16<T>(Vector256<T>)

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

AsUInt32<T>(Vector256<T>)

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

AsUInt64<T>(Vector256<T>)

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

AsVector<T>(Vector256<T>)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

適用於