Vector64.WithElement<T>(Vector64<T>, Int32, T) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
Vector64<T>使用指定索引处的元素设置为指定值,其余元素设置为与给定向量中的元素相同的值。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector64<T> WithElement(System::Runtime::Intrinsics::Vector64<T> vector, int index, T value);
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector64<T> WithElement(System::Runtime::Intrinsics::Vector64<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector64<T> WithElement<T>(this System.Runtime.Intrinsics.Vector64<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector64<T> WithElement<T>(this System.Runtime.Intrinsics.Vector64<T> vector, int index, T value) where T : struct;
static member WithElement : System.Runtime.Intrinsics.Vector64<'T> * int * 'T -> System.Runtime.Intrinsics.Vector64<'T>
static member WithElement : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithElement(Of T) (vector As Vector64(Of T), index As Integer, value As T) As Vector64(Of T)
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector64(Of T), index As Integer, value As T) As Vector64(Of T)
类型参数
- T
输入向量的类型。
参数
- vector
- Vector64<T>
要从中获取剩余元素的向量。
- index
- Int32
要设置的元素的索引。
- value
- T
要设置元素的值。
返回
一个元素的值
例外
不支持
index 小于零或大于元素数。