Tensor.RotateLeft Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32) |
Computes the element-wise rotation left of numbers in the specified tensor by the specified rotation amount. |
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
Computes the element-wise rotation left of numbers in the specified tensor by the specified rotation amount. |
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
Computes the element-wise rotation left of numbers in the specified tensor by the specified rotation amount.
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)
Type Parameters
- T
Parameters
The tensor
- rotateAmount
- Int32
The number of bits to rotate, represented as a scalar.
Returns
Exceptions
Destination is too short.
Applies to
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Computes the element-wise rotation left of numbers in the specified tensor by the specified rotation amount.
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)
Type Parameters
- T
Parameters
The tensor
- rotateAmount
- Int32
The number of bits to rotate, represented as a scalar.
- destination
- TensorSpan<T>
Returns
Exceptions
Destination is too short.