Table of Contents

Method ExToScalar

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ExToScalar<T>(Vector256<T>)

Converts the given vector to a scalar containing the value of the first element (将给定向量转换为首个元素的值的标量).

public static T ExToScalar<T>(this Vector256<T> vector) where T : struct

Parameters

vector Vector256<T>

The vector to get the first element from.

Returns

T

A scalar T containing the value of the first element.

Type Parameters

T

The type of the input vector element (输入向量元素的类型).