Vector256<T> 结构
定义
generic <typename T>
where T : value classpublic value class Vector256 : IEquatable<System::Runtime::Intrinsics::Vector256<T>>
public struct Vector256<T> : IEquatable<System.Runtime.Intrinsics.Vector256<T>> where T : struct
type Vector256<'T (requires 'T : struct)> = struct
Public Structure Vector256(Of T)
Implements IEquatable(Of Vector256(Of T))
类型参数
- T
- 继承
- 实现
-
IEquatable<Vector256<T>>
属性
| AllBitsSet |
获取一个新的 Vector256<T>,并将所有位设置为 1。Gets a new Vector256<T> with all bits set to 1. |
| Count |
获取 Vector256<T> 中 |
| Zero |
获取新的 Vector256<T>,其中所有元素已初始化为零。Gets a new Vector256<T> with all elements initialized to zero. |
方法
| Equals(Object) |
确定指定的对象是否等于当前实例。Determines whether the specified object is equal to the current instance. |
| Equals(Vector256<T>) |
确定指定的 Vector256<T> 是否等同于当前实例。Determines whether the specified Vector256<T> is equal to the current instance. |
| GetHashCode() |
获取实例的哈希代码。Gets the hash code for the instance. |
| ToString() |
将当前实例转换为等效的字符串表示形式。Converts the current instance to an equivalent string representation. |
扩展方法
| As<T,U>(Vector256<T>) |
将 |
| AsByte<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 Byte 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type Byte. |
| AsDouble<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 Double 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type Double. |
| AsInt16<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 Int16 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type Int16. |
| AsInt32<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 Int32 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type Int32. |
| AsInt64<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 Int64 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type Int64. |
| AsSByte<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 SByte 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type SByte. |
| AsSingle<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 Single 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type Single. |
| AsUInt16<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 UInt16 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type UInt16. |
| AsUInt32<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 UInt32 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type UInt32. |
| AsUInt64<T>(Vector256<T>) |
将 Vector256<T> 重新解释为 UInt64 类型的新 Vector256。Reinterprets a Vector256<T> as a new Vector256 of type UInt64. |
| AsVector<T>(Vector256<T>) |
将 Vector256<T> 重新解释为新的 Vector<T>。Reinterprets a Vector256<T> as a new Vector<T>. |
| GetElement<T>(Vector256<T>, Int32) |
获取指定索引处的元素。Gets the element at the specified index. |
| GetLower<T>(Vector256<T>) |
获取低 128 位的值作为新的 Vector128<T>。Gets the value of the lower 128 bits as a new Vector128<T>. |
| GetUpper<T>(Vector256<T>) |
获取高 128 位的值作为新的 Vector128<T>。Gets the value of the upper 128 bits as a new Vector128<T>. |
| ToScalar<T>(Vector256<T>) |
将给定向量转换为包含第一个元素的值的标量。Converts the given vector to a scalar containing the value of the first element. |
| WithElement<T>(Vector256<T>, Int32, T) |
创建一个新的 Vector256<T>,将指定索引处的元素设置为指定值,并将其余元素设置为与给定向量中的值相同的值。Creates a new Vector256<T> with the element at the specified index set to the specified value and the remaining elements set to the same value as that in the given vector. |
| WithLower<T>(Vector256<T>, Vector128<T>) |
创建一个新的 Vector256<T>,将低 128 位设置为指定值,并将高 128 位设置为与给定向量中的值相同的值。Creates a new Vector256<T> with the lower 128 bits set to the specified value and the upper 128 bits set to the same value as that in the given vector. |
| WithUpper<T>(Vector256<T>, Vector128<T>) |
创建一个新的 Vector256<T>,将高 128 位设置为指定值,并将低 128 位设置为与给定向量中的值相同的值。Creates a new Vector256<T> with the upper 128 bits set to the specified value and the lower 128 bits set to the same value as that in the given vector. |