语言

Vector512.CreateScalar 方法

定义

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

重载

名称 说明
CreateScalar(Byte)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(UIntPtr)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(UInt64)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(UInt16)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(Single)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(SByte)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(UInt32)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(Int64)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(Int32)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(Int16)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(Double)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(IntPtr)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar<T>(T)

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

CreateScalar(Byte)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<System::Byte> CreateScalar(System::Byte value);
public static System.Runtime.Intrinsics.Vector512<byte> CreateScalar(byte value);
static member CreateScalar : byte -> System.Runtime.Intrinsics.Vector512<byte>
Public Function CreateScalar (value As Byte) As Vector512(Of Byte)

参数

value
Byte

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar(UIntPtr)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

重要

此 API 不符合 CLS。

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<UIntPtr> CreateScalar(UIntPtr value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector512<UIntPtr> CreateScalar(UIntPtr value);
[<System.CLSCompliant(false)>]
static member CreateScalar : unativeint -> System.Runtime.Intrinsics.Vector512<unativeint>
Public Function CreateScalar (value As UIntPtr) As Vector512(Of UIntPtr)

参数

value
UIntPtr

unativeint

元素 0 将初始化为的值。

返回

Vector512<UIntPtr>

Vector512<unativeint>

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

特性

适用于

CreateScalar(UInt64)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

重要

此 API 不符合 CLS。

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<System::UInt64> CreateScalar(System::UInt64 value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector512<ulong> CreateScalar(ulong value);
[<System.CLSCompliant(false)>]
static member CreateScalar : uint64 -> System.Runtime.Intrinsics.Vector512<uint64>
Public Function CreateScalar (value As ULong) As Vector512(Of ULong)

参数

value
UInt64

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

特性

适用于

CreateScalar(UInt16)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

重要

此 API 不符合 CLS。

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<System::UInt16> CreateScalar(System::UInt16 value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector512<ushort> CreateScalar(ushort value);
[<System.CLSCompliant(false)>]
static member CreateScalar : uint16 -> System.Runtime.Intrinsics.Vector512<uint16>
Public Function CreateScalar (value As UShort) As Vector512(Of UShort)

参数

value
UInt16

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

特性

适用于

CreateScalar(Single)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<float> CreateScalar(float value);
public static System.Runtime.Intrinsics.Vector512<float> CreateScalar(float value);
static member CreateScalar : single -> System.Runtime.Intrinsics.Vector512<single>
Public Function CreateScalar (value As Single) As Vector512(Of Single)

参数

value
Single

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar(SByte)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

重要

此 API 不符合 CLS。

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<System::SByte> CreateScalar(System::SByte value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector512<sbyte> CreateScalar(sbyte value);
[<System.CLSCompliant(false)>]
static member CreateScalar : sbyte -> System.Runtime.Intrinsics.Vector512<sbyte>
Public Function CreateScalar (value As SByte) As Vector512(Of SByte)

参数

value
SByte

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

特性

适用于

CreateScalar(UInt32)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

重要

此 API 不符合 CLS。

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<System::UInt32> CreateScalar(System::UInt32 value);
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector512<uint> CreateScalar(uint value);
[<System.CLSCompliant(false)>]
static member CreateScalar : uint32 -> System.Runtime.Intrinsics.Vector512<uint32>
Public Function CreateScalar (value As UInteger) As Vector512(Of UInteger)

参数

value
UInt32

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

特性

适用于

CreateScalar(Int64)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<long> CreateScalar(long value);
public static System.Runtime.Intrinsics.Vector512<long> CreateScalar(long value);
static member CreateScalar : int64 -> System.Runtime.Intrinsics.Vector512<int64>
Public Function CreateScalar (value As Long) As Vector512(Of Long)

参数

value
Int64

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar(Int32)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<int> CreateScalar(int value);
public static System.Runtime.Intrinsics.Vector512<int> CreateScalar(int value);
static member CreateScalar : int -> System.Runtime.Intrinsics.Vector512<int>
Public Function CreateScalar (value As Integer) As Vector512(Of Integer)

参数

value
Int32

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar(Int16)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<short> CreateScalar(short value);
public static System.Runtime.Intrinsics.Vector512<short> CreateScalar(short value);
static member CreateScalar : int16 -> System.Runtime.Intrinsics.Vector512<int16>
Public Function CreateScalar (value As Short) As Vector512(Of Short)

参数

value
Int16

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar(Double)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<double> CreateScalar(double value);
public static System.Runtime.Intrinsics.Vector512<double> CreateScalar(double value);
static member CreateScalar : double -> System.Runtime.Intrinsics.Vector512<double>
Public Function CreateScalar (value As Double) As Vector512(Of Double)

参数

value
Double

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar(IntPtr)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
 static System::Runtime::Intrinsics::Vector512<IntPtr> CreateScalar(IntPtr value);
public static System.Runtime.Intrinsics.Vector512<IntPtr> CreateScalar(IntPtr value);
static member CreateScalar : nativeint -> System.Runtime.Intrinsics.Vector512<nativeint>
Public Function CreateScalar (value As IntPtr) As Vector512(Of IntPtr)

参数

value
IntPtr

nativeint

元素 0 将初始化为的值。

返回

Vector512<IntPtr>

Vector512<nativeint>

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

适用于

CreateScalar<T>(T)

Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs
Source:
Vector512.cs

创建一个新 Vector512<T> 实例,其中第一个元素初始化为指定值,其余元素初始化为零。

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector512<T> CreateScalar(T value);
public static System.Runtime.Intrinsics.Vector512<T> CreateScalar<T>(T value);
static member CreateScalar : 'T -> System.Runtime.Intrinsics.Vector512<'T>
Public Function CreateScalar(Of T) (value As T) As Vector512(Of T)

类型参数

T

向量中的元素的类型。

参数

value
T

元素 0 将初始化为的值。

返回

一个新 Vector512<T> 实例,其中第一个元素初始化为 value 零,其余元素初始化为零。

例外

不支持 > 的类型。

适用于