Språk

Tensor.ShiftRightArithmetic Metod

Definition

Överlagringar

Name Description
ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32)

Utför ett elementmässigt aritmetiskt högerskift på en tensor.

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

Utför ett elementmässigt aritmetiskt högerskift på en tensor.

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

Källa:
Tensor.op_RightShift.cs
Källa:
Tensor.op_RightShift.cs

Utför ett elementmässigt aritmetiskt högerskift på en tensor.

public:
generic <typename T>
 where T : System::Numerics::IShiftOperators<T, int, T> static System::Numerics::Tensors::Tensor<T> ^ ShiftRightArithmetic(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int shiftAmount);
public static System.Numerics.Tensors.Tensor<T> ShiftRightArithmetic<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int shiftAmount) where T : System.Numerics.IShiftOperators<T,int,T>;
static member ShiftRightArithmetic : 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 ShiftRightArithmetic(Of T As IShiftOperators(Of T, Integer, T)) (ByRef x As ReadOnlyTensorSpan(Of T), shiftAmount As Integer) As Tensor(Of T)

Typparametrar

T

Typ av element i tensorn.

Parametrar

x
ReadOnlyTensorSpan<T>

Tensor till aritmetik höger skift.

shiftAmount
Int32

Mängden för att flytta varje element i x.

Returer

En ny tensor som innehåller resultatet av x>>shiftAmount.

Gäller för

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

Källa:
Tensor.op_RightShift.cs
Källa:
Tensor.op_RightShift.cs

Utför ett elementmässigt aritmetiskt högerskift på en tensor.

public:
generic <typename T>
 where T : System::Numerics::IShiftOperators<T, int, T> static System::Numerics::Tensors::TensorSpan<T> ^ ShiftRightArithmetic(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int shiftAmount, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ShiftRightArithmetic<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 ShiftRightArithmetic : ReadOnlyTensorSpan * int * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IShiftOperators<'T, int, 'T>)
Public Function ShiftRightArithmetic(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)

Typparametrar

T

Typ av element i tensorn.

Parametrar

x
ReadOnlyTensorSpan<T>

Tensor till aritmetik höger skift.

shiftAmount
Int32

Mängden för att flytta varje element i x.

destination
TensorSpan<T>

Målet där resultatet av x>>shiftAmount skrivs.

Returer

En referens till destination.

Undantag

Formerna för x och destination är inte kompatibla.

Gäller för