Vector64.ToScalar<T>(Vector64<T>) 方法

定义

将给定向量转换为包含第一个元素的值的标量。

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static T ToScalar(System::Runtime::Intrinsics::Vector64<T> vector);
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T ToScalar(System::Runtime::Intrinsics::Vector64<T> vector);
public static T ToScalar<T> (this System.Runtime.Intrinsics.Vector64<T> vector) where T : struct;
public static T ToScalar<T> (this System.Runtime.Intrinsics.Vector64<T> vector);
static member ToScalar : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> -> 'T (requires 'T : struct)
static member ToScalar : System.Runtime.Intrinsics.Vector64<'T> -> 'T
<Extension()>
Public Function ToScalar(Of T As Structure) (vector As Vector64(Of T)) As T
<Extension()>
Public Function ToScalar(Of T) (vector As Vector64(Of T)) As T

类型参数

T

输入向量的类型。

参数

vector
Vector64<T>

要从中获取第一个元素的向量。

返回

T

包含第一个元素的值的标量 T

例外

不支持 vector 类型 (T)。

适用于