Tensor.RotateLeft 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32) |
按指定的旋转量计算指定张量中数字的元素旋转左侧。 |
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
按指定的旋转量计算指定张量中数字的元素旋转左侧。 |
RotateLeft<T>(ReadOnlyTensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
按指定的旋转量计算指定张量中数字的元素旋转左侧。
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>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
按指定的旋转量计算指定张量中数字的元素旋转左侧。
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>
返回
例外
目标太短。