TensorPrimitives.BitDecrement<T> メソッド

定義

指定したテンソル内の数値の要素ごとのビットデクリメントを計算します。

public:
generic <typename T>
 where T : System::Numerics::IFloatingPointIeee754<T> static void BitDecrement(ReadOnlySpan<T> x, Span<T> destination);
public static void BitDecrement<T>(ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IFloatingPointIeee754<T>;
static member BitDecrement : 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 BitDecrement(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.BitDecrement(x[i])を効果的に計算します。 各要素は、元の要素より小さい値と比較される最大値にデクリメントされます。

適用対象