Vector256.CreateScalar 方法
定义
重载
| CreateScalar(UInt64) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(Single) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(UInt32) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(UInt16) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(SByte) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(Int32) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(Int16) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(Double) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(Byte) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
| CreateScalar(Int64) |
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero. |
CreateScalar(UInt64)
重要
此 API 不符合 CLS。
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<System::UInt64> CreateScalar(System::UInt64 value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ulong> CreateScalar (ulong value);
[<System.CLSCompliant(false)>]
static member CreateScalar : uint64 -> System.Runtime.Intrinsics.Vector256<uint64>
Public Function CreateScalar (value As ULong) As Vector256(Of ULong)
参数
- value
- UInt64
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
- 属性
适用于
CreateScalar(Single)
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<float> CreateScalar(float value);
public static System.Runtime.Intrinsics.Vector256<float> CreateScalar (float value);
static member CreateScalar : single -> System.Runtime.Intrinsics.Vector256<single>
Public Function CreateScalar (value As Single) As Vector256(Of Single)
参数
- value
- Single
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
适用于
CreateScalar(UInt32)
重要
此 API 不符合 CLS。
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<System::UInt32> CreateScalar(System::UInt32 value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<uint> CreateScalar (uint value);
[<System.CLSCompliant(false)>]
static member CreateScalar : uint32 -> System.Runtime.Intrinsics.Vector256<uint32>
Public Function CreateScalar (value As UInteger) As Vector256(Of UInteger)
参数
- value
- UInt32
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
- 属性
适用于
CreateScalar(UInt16)
重要
此 API 不符合 CLS。
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<System::UInt16> CreateScalar(System::UInt16 value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ushort> CreateScalar (ushort value);
[<System.CLSCompliant(false)>]
static member CreateScalar : uint16 -> System.Runtime.Intrinsics.Vector256<uint16>
Public Function CreateScalar (value As UShort) As Vector256(Of UShort)
参数
- value
- UInt16
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
- 属性
适用于
CreateScalar(SByte)
重要
此 API 不符合 CLS。
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<System::SByte> CreateScalar(System::SByte value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<sbyte> CreateScalar (sbyte value);
[<System.CLSCompliant(false)>]
static member CreateScalar : sbyte -> System.Runtime.Intrinsics.Vector256<sbyte>
Public Function CreateScalar (value As SByte) As Vector256(Of SByte)
参数
- value
- SByte
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
- 属性
适用于
CreateScalar(Int32)
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<int> CreateScalar(int value);
public static System.Runtime.Intrinsics.Vector256<int> CreateScalar (int value);
static member CreateScalar : int -> System.Runtime.Intrinsics.Vector256<int>
Public Function CreateScalar (value As Integer) As Vector256(Of Integer)
参数
- value
- Int32
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
适用于
CreateScalar(Int16)
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<short> CreateScalar(short value);
public static System.Runtime.Intrinsics.Vector256<short> CreateScalar (short value);
static member CreateScalar : int16 -> System.Runtime.Intrinsics.Vector256<int16>
Public Function CreateScalar (value As Short) As Vector256(Of Short)
参数
- value
- Int16
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
适用于
CreateScalar(Double)
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<double> CreateScalar(double value);
public static System.Runtime.Intrinsics.Vector256<double> CreateScalar (double value);
static member CreateScalar : double -> System.Runtime.Intrinsics.Vector256<double>
Public Function CreateScalar (value As Double) As Vector256(Of Double)
参数
- value
- Double
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
适用于
CreateScalar(Byte)
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<System::Byte> CreateScalar(System::Byte value);
public static System.Runtime.Intrinsics.Vector256<byte> CreateScalar (byte value);
static member CreateScalar : byte -> System.Runtime.Intrinsics.Vector256<byte>
Public Function CreateScalar (value As Byte) As Vector256(Of Byte)
参数
- value
- Byte
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.
适用于
CreateScalar(Int64)
创建新的 Vector256<T> 实例,其中第一个元素已初始化为指定值并且其余元素已初始化为零。Creates a new Vector256<T> instance with the first element initialized to the specified value and the remaining elements initialized to zero.
public:
static System::Runtime::Intrinsics::Vector256<long> CreateScalar(long value);
public static System.Runtime.Intrinsics.Vector256<long> CreateScalar (long value);
static member CreateScalar : int64 -> System.Runtime.Intrinsics.Vector256<int64>
Public Function CreateScalar (value As Long) As Vector256(Of Long)
参数
- value
- Int64
元素 0 的初始化目标值。The value that element 0 will be initialized to.
返回
一个新的向量实例,其中第一个元素初始化为 value,其余元素初始化为零。A new vector instance with the first element initialized to value and the remaining elements initialized to zero.