다음을 통해 공유


TensorPrimitives.ILogB<T> 메서드

정의

지정된 텐서에 있는 숫자의 요소별 정수 로그를 계산합니다.

public:
generic <typename T>
 where T : System::Numerics::IFloatingPointIeee754<T> static void ILogB(ReadOnlySpan<T> x, Span<int> destination);
public static void ILogB<T> (ReadOnlySpan<T> x, Span<int> destination) where T : System.Numerics.IFloatingPointIeee754<T>;
static member ILogB : ReadOnlySpan<'T (requires 'T :> System.Numerics.IFloatingPointIeee754<'T>)> * Span<int> -> unit (requires 'T :> System.Numerics.IFloatingPointIeee754<'T>)
Public Shared Sub ILogB(Of T As IFloatingPointIeee754(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of Integer))

형식 매개 변수

T

매개 변수

x
ReadOnlySpan<T>

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

destination
Span<Int32>

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

예외

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

설명

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

적용 대상