Share via


Tensor.RightShift(ReadOnlyTensorSpan<TScalar>, Int32) Operator

Definition

Performs an element-wise arithmetic right shift on a tensor.

public:
 static System::Numerics::Tensors::Tensor<TScalar> ^ operator >>(System::Numerics::Tensors::ReadOnlyTensorSpan<TScalar> % tensor, int shiftAmount);
public static System.Numerics.Tensors.Tensor<TScalar> operator >>(in System.Numerics.Tensors.ReadOnlyTensorSpan<TScalar> tensor, int shiftAmount);
static member ( >>> ) : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.Tensor<'TScalar (requires 'TScalar :> System.Numerics.IShiftOperators<'TScalar, int, 'TScalar>)>
Public Shared Operator >> (ByRef tensor As ReadOnlyTensorSpan(Of TScalar), shiftAmount As Integer) As Tensor(Of TScalar)

Parameters

tensor
ReadOnlyTensorSpan<TScalar>

The tensor to arithmetic right shift.

shiftAmount
Int32

The amount to shift each element in tensor.

Returns

Tensor<TScalar>

A new tensor containing the result of tensor >> shiftAmount.

Applies to