Table of Contents

Class Vector64s

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Methods of Vector64<T> .

public static class Vector64s
Inheritance
Vector64s
Inherited Members

Methods

BitEquals<T>(Vector64<T>, Vector64<T>)

Returns a value that indicates whether this instance is binary equal to a specified vector (返回一个值,该值指示此实例是否与指定的向量二进制相等).

Count<T>()

Returns the number of elements stored in the vector (返回存储在向量中的元素数量).

CreateBy128Bits<T>(ExInt128)

Creates a Vector64<T> whose components are of a specified 128-bits integer (创建一个 Vector64<T>,其元素为指定的128位整数).

CreateByBits<T>(long)

Creates a Vector64<T> whose components are of a specified integer bits (创建一个 Vector64<T>,其元素为指定的整数位).

CreateByDoubleLoop<T>(double, double)

Creates a Vector64<T> from double value for loop (创建一个 Vector64<T>,其元素来自双精度浮点值的for循环).

CreateByDouble<T>(double)

Creates a Vector64<T> whose components are of a specified double value (创建一个 Vector64<T>,其元素为指定的双精度浮点值).

CreateByFunc<T>(Func<int, T>)

Creates a new Vector64<T> from a from the given Func<T, TResult> (从给定 Func<T, TResult> 创建一个新的 Vector64<T> ) .

CreateByFunc<T, TUserdata>(Func<int, TUserdata, T>, TUserdata)

Creates a new Vector64<T> from a from the given Func<T1, T2, TResult> (从给定 Func<T1, T2, TResult> 创建一个新的 Vector64<T> ) .

CreatePadding<T>(ReadOnlySpan<T>)

Padding creates a new Vector64<T> from a given span (从指定跨度补齐创建一个 Vector64<T>). The element after values is initialized to 0(values 之后的元素会初始化为0).

CreatePadding<T>(ReadOnlySpan<T>, int, int)

Padding creates a new Vector64<T> from a given span starting at a specified index position (于指定索引位置开始,从指定跨度补齐创建一个 Vector64<T>). The element after values is initialized to 0(values 之后的元素会初始化为0).

CreatePadding<T>(params T[])

Padding creates a new Vector64<T> from a given array (从给定数组补齐创建一个新的 Vector64<T> ). The element after values is initialized to 0(values 之后的元素会初始化为0).

CreatePadding<T>(T[], int, int)

Padding creates a new Vector64<T> from a given span starting at a specified index position (于指定索引位置开始,从指定跨度补齐创建一个 Vector64<T>). The element after values is initialized to 0(values 之后的元素会初始化为0).

CreateRotate<T>(ReadOnlySpan<T>)

Rotate creates a new Vector64<T> from a given span starting at a specified index position (于指定索引位置开始,从指定跨度旋转创建一个 Vector64<T>).

CreateRotate<T>(ReadOnlySpan<T>, int, int)

Rotate creates a new Vector64<T> from a given span starting at a specified index position (于指定索引位置开始,从指定跨度旋转创建一个 Vector64<T>).

CreateRotate<T>(params T[])

Rotate creates a new Vector64<T> from a given array (从给定数组旋转创建一个新的 Vector64<T> ).

CreateRotate<T>(T[], int, int)

Rotate creates a new Vector64<T> from a given span starting at a specified index position (于指定索引位置开始,从指定跨度旋转创建一个 Vector64<T>).

Create<T>(ReadOnlySpan<byte>)

Creates a new Vector64<T> from a given read-only span of bytes (根据给定的只读字节跨度构造一个 Vector64<T>).

Create<T>(ReadOnlySpan<T>)

Creates a new Vector64<T> from a from the given ReadOnlySpan<T> (根据给定的 ReadOnlySpan<T> 构造一个 Vector64<T>).

Create<T>(Span<T>)

Creates a new Vector64<T> from a from the given Span<T> (根据给定的 Span<T> 构造一个 Vector64<T>).

Create<T>(T)

Creates a new Vector64<T> instance with all elements initialized to the specified value (创建新的 Vector64<T> 实例,其中所有元素已初始化为指定值).

Create<T>(T[])

Creates a new Vector64<T> from a given array (从给定数组创建一个新的 Vector64<T> ).

Create<T>(T[], int)

Creates a new Vector64<T> from a given array starting at a specified index position (于指定索引位置开始,从指定数组创建一个 Vector64<T>).

ExAsByte<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type byte (将 Vector64<T> 重新解释为 byte 类型的新 Vector64<T>).

ExAsDouble<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type double (将 Vector64<T> 重新解释为 double 类型的新 Vector64<T>).

ExAsInt16<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type short (将 Vector64<T> 重新解释为 short 类型的新 Vector64<T>).

ExAsInt32<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type int (将 Vector64<T> 重新解释为 int 类型的新 Vector64<T>).

ExAsInt64<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type long (将 Vector64<T> 重新解释为 long 类型的新 Vector64<T>).

ExAsSByte<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type sbyte (将 Vector64<T> 重新解释为 sbyte 类型的新 Vector64<T>).

ExAsSingle<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type float (将 Vector64<T> 重新解释为 float 类型的新 Vector64<T>).

ExAsUInt16<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type ushort (将 Vector64<T> 重新解释为 ushort 类型的新 Vector64<T>).

ExAsUInt32<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type uint (将 Vector64<T> 重新解释为 uint 类型的新 Vector64<T>).

ExAsUInt64<T>(Vector64<T>)

(ExType) Reinterprets a Vector64<T> as a new Vector64<T> of type ulong (将 Vector64<T> 重新解释为 ulong 类型的新 Vector64<T>).

ExAs<TFrom, TTo>(Vector64<TFrom>)

(ExType) Reinterprets a Vector64<T> of type TFrom as a new Vector64<T> of type TTo. It supports ExType, so there is no element type check (将 TFrom 类型的 Vector64<T> 重新解释为 TTo 类型的新 Vector64<T>. 它支持扩展类型, 故没有元素类型检查).

ExGetElement<T>(in Vector64<T>, int)

(ExType) Gets the element at the specified index. It is unsafe method, it ignores the index range check (获取指定索引处的元素. 它是非安全的, 它忽略了索引的范围检查).

ExToScalar<T>(Vector64<T>)

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

ExToVector128Unsafe<T>(Vector64<T>)

Converts the given vector to a new Vector128<T> with the lower 64-bits set to the value of the given vector and the upper 64-bits left uninitialized (将给定向量转换为新 Vector128<T> 向量,其中低 64 位设置为给定向量的值,而高 64 位则未初始化).

ExToVector128<T>(Vector64<T>)

Converts the given vector to a new Vector128<T> with the lower 64-bits set to the value of the given vector and the upper 64-bits initialized to zero (将给定向量转换为新 Vector128<T> 向量,其中较低的 64 位设置为给定向量的值,并将高 64 位初始化为零).

IsNativeSupported<T>()

Determines if this element type is native supported (判断是否原生支持这种元素类型).