語言

TensorPrimitives.BitIncrement<T> 方法

定義

計算指定張量中逐元素位元的數字增量。

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

類型參數

T

參數

x
ReadOnlySpan<T>

張量以跨度表示。

destination
Span<T>

目的地張量,以範圍表示。

例外狀況

x 並 destination 參考重疊的記憶體位置,且不從相同位置開始。

備註

此方法有效計算 destination[i] = T.BitIncrement(x[i])。 每個元素都會被遞增到比原始值更大的最小值。

適用於