Table of Contents

Method CreateScalar

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

CreateScalar(ExInt128)

Creates a new vector instance of element type ExInt128 with the first element initialized to the specified value and the remaining elements initialized to zero {创建新的元素类型为ExInt128的向量实例,其中首个元素已初始化为指定值并且其余元素已初始化为零}.

public static Vector256<ExInt128> CreateScalar(ExInt128 value)

Parameters

value ExInt128

The value that element 0 will be initialized to (元素 0 的初始化值).

Returns

Vector256<ExInt128>

A new Vector256<T> instance with the first element initialized to value and the remaining elements initialized to zero (一个新的向量实例,其中首个元素初始化为 value,其余元素初始化为零).

CreateScalar(ExUInt128)

Creates a new vector instance of element type ExUInt128 with the first element initialized to the specified value and the remaining elements initialized to zero {创建新的元素类型为ExUInt128的向量实例,其中首个元素已初始化为指定值并且其余元素已初始化为零}.

[CLSCompliant(false)]
public static Vector256<ExUInt128> CreateScalar(ExUInt128 value)

Parameters

value ExUInt128

The value that element 0 will be initialized to (元素 0 的初始化值).

Returns

Vector256<ExUInt128>

A new Vector256<T> instance with the first element initialized to value and the remaining elements initialized to zero (一个新的向量实例,其中首个元素初始化为 value,其余元素初始化为零).

CreateScalar(Int128)

Creates a new vector instance of element type Int128 with the first element initialized to the specified value and the remaining elements initialized to zero {创建新的元素类型为Int128的向量实例,其中首个元素已初始化为指定值并且其余元素已初始化为零}.

public static Vector256<Int128> CreateScalar(Int128 value)

Parameters

value Int128

The value that element 0 will be initialized to (元素 0 的初始化值).

Returns

Vector256<Int128>

A new Vector256<T> instance with the first element initialized to value and the remaining elements initialized to zero (一个新的向量实例,其中首个元素初始化为 value,其余元素初始化为零).

CreateScalar(UInt128)

Creates a new vector instance of element type UInt128 with the first element initialized to the specified value and the remaining elements initialized to zero {创建新的元素类型为UInt128的向量实例,其中首个元素已初始化为指定值并且其余元素已初始化为零}.

[CLSCompliant(false)]
public static Vector256<UInt128> CreateScalar(UInt128 value)

Parameters

value UInt128

The value that element 0 will be initialized to (元素 0 的初始化值).

Returns

Vector256<UInt128>

A new Vector256<T> instance with the first element initialized to value and the remaining elements initialized to zero (一个新的向量实例,其中首个元素初始化为 value,其余元素初始化为零).