Vector128.CreateScalarUnsafe Method

Definition

Overloads

CreateScalarUnsafe(UInt64)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(UInt32)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(UInt16)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(Single)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(SByte)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(UIntPtr)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(Int64)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(Int32)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(Int16)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(Double)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(Byte)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(IntPtr)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe<T>(T)

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

CreateScalarUnsafe(UInt64)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Important

This API is not CLS-compliant.

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector128<ulong> CreateScalarUnsafe(ulong value);

Parameters

value
UInt64

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Attributes

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(UInt32)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Important

This API is not CLS-compliant.

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector128<uint> CreateScalarUnsafe(uint value);

Parameters

value
UInt32

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Attributes

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(UInt16)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Important

This API is not CLS-compliant.

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector128<ushort> CreateScalarUnsafe(ushort value);

Parameters

value
UInt16

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Attributes

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(Single)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<float> CreateScalarUnsafe(float value);

Parameters

value
Single

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(SByte)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Important

This API is not CLS-compliant.

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector128<sbyte> CreateScalarUnsafe(sbyte value);

Parameters

value
SByte

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Attributes

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(UIntPtr)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Important

This API is not CLS-compliant.

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector128<UIntPtr> CreateScalarUnsafe(UIntPtr value);

Parameters

value
UIntPtr

The value that element 0 will be initialized to.

Returns

Vector128<UIntPtr>

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Attributes

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

CreateScalarUnsafe(Int64)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<long> CreateScalarUnsafe(long value);

Parameters

value
Int64

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(Int32)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<int> CreateScalarUnsafe(int value);

Parameters

value
Int32

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(Int16)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<short> CreateScalarUnsafe(short value);

Parameters

value
Int16

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(Double)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<double> CreateScalarUnsafe(double value);

Parameters

value
Double

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(Byte)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<byte> CreateScalarUnsafe(byte value);

Parameters

value
Byte

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

CreateScalarUnsafe(IntPtr)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<IntPtr> CreateScalarUnsafe(IntPtr value);

Parameters

value
IntPtr

The value that element 0 will be initialized to.

Returns

Vector128<IntPtr>

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

CreateScalarUnsafe<T>(T)

Source:
Vector128.cs
Source:
Vector128.cs

Creates a new Vector128<T> instance with the first element initialized to the specified value and the remaining elements left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector128<T> CreateScalarUnsafe<T>(T value);

Type Parameters

T

The type of the elements in the vector.

Parameters

value
T

The value that element 0 will be initialized to.

Returns

A new Vector128<T> instance with the first element initialized to value and the remaining elements left uninitialized.

Exceptions

The type of value (T) is not supported.

Applies to

.NET 9 and .NET 8
Product Versions
.NET 8, 9