Tensor.RotateLeft 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32) |
依指定的旋轉量計算指定張量中數字的元素旋轉左方。 |
| RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
依指定的旋轉量計算指定張量中數字的元素旋轉左方。 |
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32)
依指定的旋轉量計算指定張量中數字的元素旋轉左方。
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> static System::Numerics::Tensors::Tensor<T> ^ RotateLeft(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int rotateAmount);
public static System.Numerics.Tensors.Tensor<T> RotateLeft<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int rotateAmount) where T : System.Numerics.IBinaryInteger<T>;
static member RotateLeft : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)> (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Function RotateLeft(Of T As IBinaryInteger(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), rotateAmount As Integer) As Tensor(Of T)
類型參數
- T
參數
- rotateAmount
- Int32
要旋轉的位數,以純量表示。
傳回
例外狀況
目的地太短。
適用於
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)
依指定的旋轉量計算指定張量中數字的元素旋轉左方。
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> static System::Numerics::Tensors::TensorSpan<T> ^ RotateLeft(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int rotateAmount, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RotateLeft<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int rotateAmount, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T>;
static member RotateLeft : ReadOnlyTensorSpan * int * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Function RotateLeft(Of T As IBinaryInteger(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), rotateAmount As Integer, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
類型參數
- T
參數
- rotateAmount
- Int32
要旋轉的位數,以純量表示。
- destination
- TensorSpan<T>
傳回
例外狀況
目的地太短。