Vector256.TryCopyTo<T>(Vector256<T>, Span<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试将 复制到 Vector<T> 给定范围。
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static bool TryCopyTo(System::Runtime::Intrinsics::Vector256<T> vector, Span<T> destination);
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryCopyTo(System::Runtime::Intrinsics::Vector256<T> vector, Span<T> destination);
public static bool TryCopyTo<T> (this System.Runtime.Intrinsics.Vector256<T> vector, Span<T> destination) where T : struct;
public static bool TryCopyTo<T> (this System.Runtime.Intrinsics.Vector256<T> vector, Span<T> destination);
static member TryCopyTo : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * Span<'T (requires 'T : struct)> -> bool (requires 'T : struct)
static member TryCopyTo : System.Runtime.Intrinsics.Vector256<'T> * Span<'T> -> bool
<Extension()>
Public Function TryCopyTo(Of T As Structure) (vector As Vector256(Of T), destination As Span(Of T)) As Boolean
<Extension()>
Public Function TryCopyTo(Of T) (vector As Vector256(Of T), destination As Span(Of T)) As Boolean
类型参数
- T
输入向量的类型。
参数
- vector
- Vector256<T>
要复制的向量。
- destination
- Span<T>
要复制到的 destination
跨度。
返回
true
如果 vector
已成功复制到 ,则为 destination
;否则, false
如果 的 destination
长度小于 Count,则为 。
例外
不支持 和 destination
(T
) 的类型vector
。