Vector256.As<T,U>(Vector256<T>) 方法

定义

TFrom 类型的 Vector256<T> 重新解释为 TTo 类型的新 Vector256<T>

public:
generic <typename T, typename U>
 where T : value class where U : value class[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector256<U> As(System::Runtime::Intrinsics::Vector256<T> vector);
public:
generic <typename TFrom, typename TTo>
 where TFrom : value class where TTo : value class[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector256<TTo> As(System::Runtime::Intrinsics::Vector256<TFrom> vector);
public:
generic <typename TFrom, typename TTo>
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector256<TTo> As(System::Runtime::Intrinsics::Vector256<TFrom> vector);
public static System.Runtime.Intrinsics.Vector256<U> As<T,U> (this System.Runtime.Intrinsics.Vector256<T> vector) where T : struct where U : struct;
public static System.Runtime.Intrinsics.Vector256<TTo> As<TFrom,TTo> (this System.Runtime.Intrinsics.Vector256<TFrom> vector) where TFrom : struct where TTo : struct;
public static System.Runtime.Intrinsics.Vector256<TTo> As<TFrom,TTo> (this System.Runtime.Intrinsics.Vector256<TFrom> vector);
static member As : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector256<'U (requires 'U : struct)> (requires 'T : struct and 'U : struct)
static member As : System.Runtime.Intrinsics.Vector256<'From (requires 'From : struct)> -> System.Runtime.Intrinsics.Vector256<'o (requires 'o : struct)> (requires 'From : struct and 'o : struct)
static member As : System.Runtime.Intrinsics.Vector256<'From> -> System.Runtime.Intrinsics.Vector256<'o>
<Extension()>
Public Function As(Of T As Structure, U As Structure) (vector As Vector256(Of T)) As Vector256(Of U)
<Extension()>
Public Function As(Of TFrom As Structure, TTo As Structure) (vector As Vector256(Of TFrom)) As Vector256(Of TTo)
<Extension()>
Public Function As(Of TFrom, TTo) (vector As Vector256(Of TFrom)) As Vector256(Of TTo)

类型参数

T TFrom

输入向量的类型。

输入向量的类型。

U TTo

向量 vector 应重新解释为的类型。

向量 vector 应重新解释为的类型。

参数

vector
Vector256<T>

要重新解释的向量。

返回

Vector256<TTo>

vector 重新解释为 Vector256<T> 类型的 TTo

例外

不支持 vector 类型 (TFrom) 或目标类型 (TTo)。

适用于