Vector.ConvertToSingle Method

Definition

Overloads

ConvertToSingle(Vector<Int32>)

Converts a Vector<Int32> to a Vector<Single>.

ConvertToSingle(Vector<UInt32>)

Converts a Vector<UInt32> to a Vector<Single>.

ConvertToSingle(Vector<Int32>)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Converts a Vector<Int32> to a Vector<Single>.

C#
public static System.Numerics.Vector<float> ConvertToSingle(System.Numerics.Vector<int> value);

Parameters

value
Vector<Int32>

The source vector.

Returns

The converted vector.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1

ConvertToSingle(Vector<UInt32>)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Important

This API is not CLS-compliant.

Converts a Vector<UInt32> to a Vector<Single>.

C#
[System.CLSCompliant(false)]
public static System.Numerics.Vector<float> ConvertToSingle(System.Numerics.Vector<uint> value);

Parameters

value
Vector<UInt32>

The source vector.

Returns

The converted vector.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1