TensorPrimitives.Round 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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
매개 변수
범위로 표현되는 텐서입니다.
- destination
- Span<T>
범위로 표시되는 대상 텐서입니다.
예외
x
및 destination
겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.
설명
이 메서드는
효과적으로 계산합니다.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
매개 변수
범위로 표현되는 텐서입니다.
- digits
- Int32
x
숫자를 반올림할 소수 자릿수입니다.
- destination
- Span<T>
범위로 표시되는 대상 텐서입니다.
예외
x
및 destination
겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.
설명
이 메서드는
효과적으로 계산합니다.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
매개 변수
범위로 표현되는 텐서입니다.
- mode
- MidpointRounding
x
반올림해야 하는 모드입니다.
- destination
- Span<T>
범위로 표시되는 대상 텐서입니다.
예외
x
및 destination
겹치는 메모리 위치를 참조하며 동일한 위치에서 시작하지 않습니다.
설명
이 메서드는
효과적으로 계산합니다.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
매개 변수
범위로 표현되는 텐서입니다.
- digits
- Int32
x
숫자를 반올림할 소수 자릿수입니다.
- mode
- MidpointRounding
x
반올림해야 하는 모드입니다.
- destination
- Span<T>
범위로 표시되는 대상 텐서입니다.
예외
mode
잘못되었습니다.
digits
잘못되었습니다.
설명
이 메서드는
효과적으로 계산합니다.destination
[i] = T.Round(x
[i], digits
, mode
)