다음을 통해 공유


TensorPrimitives.Round 메서드

정의

오버로드

Round<T>(ReadOnlySpan<T>, Span<T>)

지정된 텐서에 있는 숫자의 요소 단위 반올림을 계산합니다.

Round<T>(ReadOnlySpan<T>, Int32, Span<T>)

지정된 텐서에 있는 숫자의 요소 단위 반올림을 계산합니다.

Round<T>(ReadOnlySpan<T>, MidpointRounding, Span<T>)

지정된 텐서에 있는 숫자의 요소 단위 반올림을 계산합니다.

Round<T>(ReadOnlySpan<T>, Int32, MidpointRounding, Span<T>)

지정된 텐서에 있는 숫자의 요소 단위 반올림을 계산합니다.

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))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

범위로 표현되는 텐서입니다.

destination
Span<T>

범위로 표시되는 대상 텐서입니다.

예외

xdestination 겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.

설명

이 메서드는 destination[i] = T.Round(x[i])효과적으로 계산합니다.

적용 대상

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))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

범위로 표현되는 텐서입니다.

digits
Int32

x 숫자를 반올림할 소수 자릿수입니다.

destination
Span<T>

범위로 표시되는 대상 텐서입니다.

예외

xdestination 겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.

설명

이 메서드는 destination[i] = T.Round(x[i], digits)효과적으로 계산합니다.

적용 대상

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))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

범위로 표현되는 텐서입니다.

mode
MidpointRounding

x 반올림해야 하는 모드입니다.

destination
Span<T>

범위로 표시되는 대상 텐서입니다.

예외

xdestination 겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.

설명

이 메서드는 destination[i] = T.Round(x[i], mode)효과적으로 계산합니다.

적용 대상

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))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

범위로 표현되는 텐서입니다.

digits
Int32

x 숫자를 반올림할 소수 자릿수입니다.

mode
MidpointRounding

x 반올림해야 하는 모드입니다.

destination
Span<T>

범위로 표시되는 대상 텐서입니다.

예외

mode 잘못되었습니다.

digits 잘못되었습니다.

설명

이 메서드는 destination[i] = T.Round(x[i], digits, mode)효과적으로 계산합니다.

적용 대상