TensorPrimitives.RotateRight<T> メソッド

定義

指定したテンソル内の数値の要素ごとの回転右を、指定した回転量で計算します。

public:
generic <typename T>
 where T : System::Numerics::IBinaryInteger<T> static void RotateRight(ReadOnlySpan<T> x, int rotateAmount, Span<T> destination);
public static void RotateRight<T> (ReadOnlySpan<T> x, int rotateAmount, Span<T> destination) where T : System.Numerics.IBinaryInteger<T>;
static member RotateRight : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> * int * Span<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> -> unit (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Shared Sub RotateRight(Of T As IBinaryInteger(Of T)) (x As ReadOnlySpan(Of T), rotateAmount As Integer, destination As Span(Of T))

型パラメーター

T

パラメーター

x
ReadOnlySpan<T>

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

rotateAmount
Int32

スカラーとして表される、回転するビット数。

destination
Span<T>

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

例外

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

注釈

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

適用対象