TensorPrimitives.Increment<T> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したテンソル内の数値の要素ごとの増分を計算します。
public:
generic <typename T>
where T : System::Numerics::IIncrementOperators<T> static void Increment(ReadOnlySpan<T> x, Span<T> destination);
public static void Increment<T>(ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IIncrementOperators<T>;
static member Increment : ReadOnlySpan<'T (requires 'T :> System.Numerics.IIncrementOperators<'T>)> * Span<'T (requires 'T :> System.Numerics.IIncrementOperators<'T>)> -> unit (requires 'T :> System.Numerics.IIncrementOperators<'T>)
Public Shared Sub Increment(Of T As IIncrementOperators(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of T))
型パラメーター
- T
パラメーター
スパンとして表されるテンソル。
- destination
- Span<T>
スパンとして表される宛先テンソル。
例外
x と destination 重複するメモリ位置を参照し、同じ場所から開始しないでください。
注釈
このメソッドは、 を効果的に計算します。destination[i] = x[i] + 1