Share via


Tensor.ShiftRightLogical Method

Definition

Overloads

ShiftRightLogical<T>(ReadOnlyTensorSpan<T>, Int32)

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

ShiftRightLogical<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)

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

ShiftRightLogical<T>(ReadOnlyTensorSpan<T>, Int32)

Source:
Tensor.op_UnsignedRightShift.cs

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

public:
generic <typename T>
 where T : System::Numerics::IShiftOperators<T, int, T> static System::Numerics::Tensors::Tensor<T> ^ ShiftRightLogical(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int shiftAmount);
public static System.Numerics.Tensors.Tensor<T> ShiftRightLogical<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int shiftAmount) where T : System.Numerics.IShiftOperators<T,int,T>;
static member ShiftRightLogical : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)> (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)
Public Function ShiftRightLogical(Of T As IShiftOperators(Of T, Integer, T)) (ByRef x As ReadOnlyTensorSpan(Of T), shiftAmount As Integer) As Tensor(Of T)

Type Parameters

T

The type of the elements in the tensor.

Parameters

x
ReadOnlyTensorSpan<T>

The tensor to logical right shift.

shiftAmount
Int32

The amount to shift each element in x.

Returns

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

Applies to

ShiftRightLogical<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)

Source:
Tensor.op_UnsignedRightShift.cs

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

public:
generic <typename T>
 where T : System::Numerics::IShiftOperators<T, int, T> static System::Numerics::Tensors::TensorSpan<T> ^ ShiftRightLogical(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int shiftAmount, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ShiftRightLogical<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int shiftAmount, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IShiftOperators<T,int,T>;
static member ShiftRightLogical : ReadOnlyTensorSpan * int * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)
Public Function ShiftRightLogical(Of T As IShiftOperators(Of T, Integer, T)) (ByRef x As ReadOnlyTensorSpan(Of T), shiftAmount As Integer, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

The type of the elements in the tensor.

Parameters

x
ReadOnlyTensorSpan<T>

The tensor to logical right shift.

shiftAmount
Int32

The amount to shift each element in x.

destination
TensorSpan<T>

The destination where the result of x >>> shiftAmount is written.

Returns

A reference to destination.

Exceptions

The shapes of x and destination are not compatible.

Applies to