TensorPrimitives.RotateLeft<T> Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menghitung rotasi elemen bijaksana yang tersisa dari angka dalam tensor yang ditentukan dengan jumlah rotasi yang ditentukan.
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> static void RotateLeft(ReadOnlySpan<T> x, int rotateAmount, Span<T> destination);
public static void RotateLeft<T> (ReadOnlySpan<T> x, int rotateAmount, Span<T> destination) where T : System.Numerics.IBinaryInteger<T>;
static member RotateLeft : 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 RotateLeft(Of T As IBinaryInteger(Of T)) (x As ReadOnlySpan(Of T), rotateAmount As Integer, destination As Span(Of T))
Jenis parameter
- T
Parameter
Tensor, direpresentasikan sebagai rentang.
- rotateAmount
- Int32
Jumlah bit yang akan diputar, direpresentasikan sebagai skalar.
- destination
- Span<T>
Tensor tujuan, diwakili sebagai rentang.
Pengecualian
x
dan referensi destination
lokasi memori yang tumpang tindih dan tidak dimulai di lokasi yang sama.
Keterangan
Metode ini secara efektif menghitung
.destination
[i] = T.RotateLeft(x
[i], rotateAmount
)