Tensor.ShiftRightArithmetic Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| Nome | Description |
|---|---|
| ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32) |
Executa uma mudança aritmética aritmética no elemento em um tensor. |
| ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
Executa uma mudança aritmética aritmética no elemento em um tensor. |
ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32)
- Origem:
- Tensor.op_RightShift.cs
- Origem:
- Tensor.op_RightShift.cs
Executa uma mudança aritmética aritmética no elemento em um 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)
Parâmetros de tipo
- T
O tipo dos elementos no tensor.
Parâmetros
O tensor para o deslocamento aritmético para a direita.
- shiftAmount
- Int32
O valor a ser deslocado para cada elemento em x.
Retornos
Um novo tensor que contém o resultado de x>>shiftAmount.
Aplica-se a
ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)
- Origem:
- Tensor.op_RightShift.cs
- Origem:
- Tensor.op_RightShift.cs
Executa uma mudança aritmética aritmética no elemento em um 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)
Parâmetros de tipo
- T
O tipo dos elementos no tensor.
Parâmetros
O tensor para o deslocamento aritmético para a direita.
- shiftAmount
- Int32
O valor a ser deslocado para cada elemento em x.
- destination
- TensorSpan<T>
O destino do x>>shiftAmount qual o resultado é gravado.
Retornos
Uma referência a destination.
Exceções
As formas de x e destination não são compatíveis.