Tensor.ShiftRightArithmetic Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32) |
Realiza um deslocamento aritmético à direita elemento a elemento num tensor. |
| ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>) |
Realiza um deslocamento aritmético à direita elemento a elemento num tensor. |
ShiftRightArithmetic<T>(ReadOnlyTensorSpan<T>, Int32)
- Origem:
- Tensor.op_RightShift.cs
- Origem:
- Tensor.op_RightShift.cs
Realiza um deslocamento aritmético à direita elemento a elemento num 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 Genérico
- T
O tipo dos elementos no tensor.
Parâmetros
O deslocamento da direita do tensor para a aritmética.
- shiftAmount
- Int32
A quantidade para deslocar cada elemento em x.
Devoluções
Um novo tensor contendo 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
Realiza um deslocamento aritmético à direita elemento a elemento num 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 Genérico
- T
O tipo dos elementos no tensor.
Parâmetros
O deslocamento da direita do tensor para a aritmética.
- shiftAmount
- Int32
A quantidade para deslocar cada elemento em x.
- destination
- TensorSpan<T>
O destino onde o resultado de x>>shiftAmount está escrito.
Devoluções
Uma referência a destination.
Exceções
As formas de x e destination não são compatíveis.