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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應