語言

Tensor.ShiftRightArithmetic 方法

定義

多載

名稱 Description
ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32)

對張量執行元素層級的算術右移。

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

對張量執行元素層級的算術右移。

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

來源:
Tensor.op_RightShift.cs
來源:
Tensor.op_RightShift.cs

對張量執行元素層級的算術右移。

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)

類型參數

T

張量中元素的類型。

參數

x
ReadOnlyTensorSpan<T>

從張量到算術右移。

shiftAmount
Int32

將每個元素移入 x的量。

傳回

一個包含結果的新 x>>shiftAmount張量。

適用於

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

來源:
Tensor.op_RightShift.cs
來源:
Tensor.op_RightShift.cs

對張量執行元素層級的算術右移。

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)

類型參數

T

張量中元素的類型。

參數

x
ReadOnlyTensorSpan<T>

從張量到算術右移。

shiftAmount
Int32

將每個元素移入 x的量。

destination
TensorSpan<T>

結果寫入的目的地 x>>shiftAmount 。

傳回

的 destination參考。

例外狀況

和 x 的destination形狀不相容。

適用於