TensorPrimitives.DivRem メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| DivRem<T>(ReadOnlySpan<T>, T, Span<T>, Span<T>) |
指定したテンソルの要素ごとの商と剰余の数値を計算します。 |
| DivRem<T>(T, ReadOnlySpan<T>, Span<T>, Span<T>) |
指定したテンソルの要素ごとの商と剰余の数値を計算します。 |
| DivRem<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>, Span<T>) |
指定したテンソルの要素ごとの商と剰余の数値を計算します。 |
DivRem<T>(ReadOnlySpan<T>, T, Span<T>, Span<T>)
指定したテンソルの要素ごとの商と剰余の数値を計算します。
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> static void DivRem(ReadOnlySpan<T> x, T y, Span<T> quotientDestination, Span<T> remainderDestination);
public static void DivRem<T>(ReadOnlySpan<T> x, T y, Span<T> quotientDestination, Span<T> remainderDestination) where T : System.Numerics.IBinaryInteger<T>;
static member DivRem : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * 'T * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> -> unit (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Shared Sub DivRem(Of T As IBinaryInteger(Of T)) (x As ReadOnlySpan(Of T), y As T, quotientDestination As Span(Of T), remainderDestination As Span(Of T))
型パラメーター
- T
パラメーター
スパンとして表される最初のテンソル。
- y
- T
スカラーとして表される 2 番目のテンソル。
- quotientDestination
- Span<T>
スパンとして表される商の宛先テンソル。
- remainderDestination
- Span<T>
スパンとして表される残りの宛先テンソル。
例外
x と remainderDestination 重複するメモリ位置を参照し、同じ場所から開始しないでください。
T は整数型で、 y は 0 に等しくなります。
注釈
このメソッドは、 (を効果的に計算します。quotientDestination[i], remainderDestination[i]) = T.DivRem(x[i], y)
要素ごとの入力値のいずれかが NaNと等しい場合、結果の要素ごとの値も NaN になります。
適用対象
DivRem<T>(T, ReadOnlySpan<T>, Span<T>, Span<T>)
指定したテンソルの要素ごとの商と剰余の数値を計算します。
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> static void DivRem(T x, ReadOnlySpan<T> y, Span<T> quotientDestination, Span<T> remainderDestination);
public static void DivRem<T>(T x, ReadOnlySpan<T> y, Span<T> quotientDestination, Span<T> remainderDestination) where T : System.Numerics.IBinaryInteger<T>;
static member DivRem : 'T * ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> -> unit (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Shared Sub DivRem(Of T As IBinaryInteger(Of T)) (x As T, y As ReadOnlySpan(Of T), quotientDestination As Span(Of T), remainderDestination As Span(Of T))
型パラメーター
- T
パラメーター
- x
- T
スカラーとして表される最初のテンソル。
スパンとして表される 2 番目のテンソル。
- quotientDestination
- Span<T>
スパンとして表される商の宛先テンソル。
- remainderDestination
- Span<T>
スパンとして表される残りの宛先テンソル。
例外
y と remainderDestination 重複するメモリ位置を参照し、同じ場所から開始しないでください。
T は整数型で、 y の要素は 0 に等しくなります。
注釈
このメソッドは、 (を効果的に計算します。quotientDestination[i], remainderDestination[i]) = T.DivRem(x, y[i])
要素ごとの入力値のいずれかが NaNと等しい場合、結果の要素ごとの値も NaN になります。
適用対象
DivRem<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>, Span<T>)
指定したテンソルの要素ごとの商と剰余の数値を計算します。
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> static void DivRem(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> quotientDestination, Span<T> remainderDestination);
public static void DivRem<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> quotientDestination, Span<T> remainderDestination) where T : System.Numerics.IBinaryInteger<T>;
static member DivRem : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> -> unit (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Shared Sub DivRem(Of T As IBinaryInteger(Of T)) (x As ReadOnlySpan(Of T), y As ReadOnlySpan(Of T), quotientDestination As Span(Of T), remainderDestination As Span(Of T))
型パラメーター
- T
パラメーター
スパンとして表される最初のテンソル。
スパンとして表される 2 番目のテンソル。
- quotientDestination
- Span<T>
スパンとして表される商の宛先テンソル。
- remainderDestination
- Span<T>
スパンとして表される残りの宛先テンソル。
例外
x または y と remainderDestination 重複するメモリ位置を参照し、同じ場所から開始しないでください。
T は整数型で、 y の要素は 0 に等しくなります。
注釈
このメソッドは、 (を効果的に計算します。quotientDestination[i], remainderDestination[i]) = T.DivRem(x[i], y[i])
要素ごとの入力値のいずれかが NaNと等しい場合、結果の要素ごとの値も NaN になります。