TensorPrimitives.Round Method
Definition
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.
Overloads
Round<T>(ReadOnlySpan<T>, Int32, MidpointRounding, Span<T>) | |
Round<T>(ReadOnlySpan<T>, MidpointRounding, Span<T>) | |
Round<T>(ReadOnlySpan<T>, Span<T>) | |
Round<T>(ReadOnlySpan<T>, Int32, Span<T>) |
Round<T>(ReadOnlySpan<T>, Int32, MidpointRounding, Span<T>)
- Source:
- TensorPrimitives.Round.cs
- Source:
- TensorPrimitives.Round.cs
public:
generic <typename T>
where T : System::Numerics::IFloatingPoint<T> static void Round(ReadOnlySpan<T> x, int digits, MidpointRounding mode, Span<T> destination);
public static void Round<T> (ReadOnlySpan<T> x, int digits, MidpointRounding mode, Span<T> destination) where T : System.Numerics.IFloatingPoint<T>;
static member Round : ReadOnlySpan<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> * int * MidpointRounding * Span<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> -> unit (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Shared Sub Round(Of T As IFloatingPoint(Of T)) (x As ReadOnlySpan(Of T), digits As Integer, mode As MidpointRounding, destination As Span(Of T))
Type Parameters
- T
Parameters
- digits
- Int32
- mode
- MidpointRounding
- destination
- Span<T>
Applies to
Round<T>(ReadOnlySpan<T>, MidpointRounding, Span<T>)
- Source:
- TensorPrimitives.Round.cs
- Source:
- TensorPrimitives.Round.cs
public:
generic <typename T>
where T : System::Numerics::IFloatingPoint<T> static void Round(ReadOnlySpan<T> x, MidpointRounding mode, Span<T> destination);
public static void Round<T> (ReadOnlySpan<T> x, MidpointRounding mode, Span<T> destination) where T : System.Numerics.IFloatingPoint<T>;
static member Round : ReadOnlySpan<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> * MidpointRounding * Span<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> -> unit (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Shared Sub Round(Of T As IFloatingPoint(Of T)) (x As ReadOnlySpan(Of T), mode As MidpointRounding, destination As Span(Of T))
Type Parameters
- T
Parameters
- mode
- MidpointRounding
- destination
- Span<T>
Applies to
Round<T>(ReadOnlySpan<T>, Span<T>)
- Source:
- TensorPrimitives.Round.cs
- Source:
- TensorPrimitives.Round.cs
public:
generic <typename T>
where T : System::Numerics::IFloatingPoint<T> static void Round(ReadOnlySpan<T> x, Span<T> destination);
public static void Round<T> (ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IFloatingPoint<T>;
static member Round : ReadOnlySpan<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> * Span<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> -> unit (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Shared Sub Round(Of T As IFloatingPoint(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of T))
Type Parameters
- T
Parameters
- destination
- Span<T>
Applies to
Round<T>(ReadOnlySpan<T>, Int32, Span<T>)
- Source:
- TensorPrimitives.Round.cs
- Source:
- TensorPrimitives.Round.cs
public:
generic <typename T>
where T : System::Numerics::IFloatingPoint<T> static void Round(ReadOnlySpan<T> x, int digits, Span<T> destination);
public static void Round<T> (ReadOnlySpan<T> x, int digits, Span<T> destination) where T : System.Numerics.IFloatingPoint<T>;
static member Round : ReadOnlySpan<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> * int * Span<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> -> unit (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Shared Sub Round(Of T As IFloatingPoint(Of T)) (x As ReadOnlySpan(Of T), digits As Integer, destination As Span(Of T))
Type Parameters
- T
Parameters
- digits
- Int32
- destination
- Span<T>
Applies to
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for