Vector.ConvertToSingle Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ConvertToSingle(Vector<Int32>) |
Converts a |
ConvertToSingle(Vector<UInt32>) |
Converts a |
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Converts a Vector<Int32>
to a Vector<Single>
.
public:
static System::Numerics::Vector<float> ConvertToSingle(System::Numerics::Vector<int> value);
C#
public static System.Numerics.Vector<float> ConvertToSingle(System.Numerics.Vector<int> value);
static member ConvertToSingle : System.Numerics.Vector<int> -> System.Numerics.Vector<single>
Public Shared Function ConvertToSingle (value As Vector(Of Integer)) As Vector(Of Single)
Public Function ConvertToSingle (value As Vector(Of Integer)) As Vector(Of Single)
Parameters
Returns
The converted vector.
Applies to
.NET 9 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 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 |
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Important
This API is not CLS-compliant.
Converts a Vector<UInt32>
to a Vector<Single>
.
public:
static System::Numerics::Vector<float> ConvertToSingle(System::Numerics::Vector<System::UInt32> value);
C#
[System.CLSCompliant(false)]
public static System.Numerics.Vector<float> ConvertToSingle(System.Numerics.Vector<uint> value);
[<System.CLSCompliant(false)>]
static member ConvertToSingle : System.Numerics.Vector<uint32> -> System.Numerics.Vector<single>
Public Shared Function ConvertToSingle (value As Vector(Of UInteger)) As Vector(Of Single)
Public Function ConvertToSingle (value As Vector(Of UInteger)) As Vector(Of Single)
Parameters
Returns
The converted vector.
- Attributes
Applies to
.NET 9 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 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: