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>

スパンとして表される宛先テンソル。

例外

xdestination 重複するメモリ位置を参照し、同じ場所から開始しないでください。

注釈

このメソッドは、 destination[i] = T.BitIncrement(x[i])を効果的に計算します。 各要素は、元の要素より大きい値を比較する最小の値にインクリメントされます。

適用対象