TensorPrimitives.DivRem メソッド

定義

オーバーロード

名前 説明
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>)

ソース:
TensorPrimitives.DivRem.cs
ソース:
TensorPrimitives.DivRem.cs

指定したテンソルの要素ごとの商と剰余の数値を計算します。

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

パラメーター

x
ReadOnlySpan<T>

スパンとして表される最初のテンソル。

y
T

スカラーとして表される 2 番目のテンソル。

quotientDestination
Span<T>

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

remainderDestination
Span<T>

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

例外

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

T は整数型で、 y は 0 に等しくなります。

注釈

このメソッドは、 (quotientDestination[i], remainderDestination[i]) = T.DivRem(x[i], y)を効果的に計算します。

要素ごとの入力値のいずれかが NaNと等しい場合、結果の要素ごとの値も NaN になります。

適用対象

DivRem<T>(T, ReadOnlySpan<T>, Span<T>, Span<T>)

ソース:
TensorPrimitives.DivRem.cs
ソース:
TensorPrimitives.DivRem.cs

指定したテンソルの要素ごとの商と剰余の数値を計算します。

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

スカラーとして表される最初のテンソル。

y
ReadOnlySpan<T>

スパンとして表される 2 番目のテンソル。

quotientDestination
Span<T>

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

remainderDestination
Span<T>

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

例外

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

T は整数型で、 y の要素は 0 に等しくなります。

注釈

このメソッドは、 (quotientDestination[i], remainderDestination[i]) = T.DivRem(x, y[i])を効果的に計算します。

要素ごとの入力値のいずれかが NaNと等しい場合、結果の要素ごとの値も NaN になります。

適用対象

DivRem<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Span<T>, Span<T>)

ソース:
TensorPrimitives.DivRem.cs
ソース:
TensorPrimitives.DivRem.cs

指定したテンソルの要素ごとの商と剰余の数値を計算します。

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

パラメーター

x
ReadOnlySpan<T>

スパンとして表される最初のテンソル。

y
ReadOnlySpan<T>

スパンとして表される 2 番目のテンソル。

quotientDestination
Span<T>

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

remainderDestination
Span<T>

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

例外

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

T は整数型で、 y の要素は 0 に等しくなります。

注釈

このメソッドは、 (quotientDestination[i], remainderDestination[i]) = T.DivRem(x[i], y[i])を効果的に計算します。

要素ごとの入力値のいずれかが NaNと等しい場合、結果の要素ごとの値も NaN になります。

適用対象